The reference
Every operation, with its fields and errors, is in the OpenAPI document:
https://demo.mvdm.io/sales/openapi/v1.json
Scalar shows the same document as a page you can browse. You can sign in there and try calls, which are real: on Production they change your real Forms, Leads, and Campaigns.
The base address
Every call goes to an address under:
https://demo.mvdm.io/sales/api/v1/
Requests and answers are JSON, with camelCase field names.
Signing in
The API accepts only a bearer credential in the Authorization header. It never reads a browser cookie and never redirects to a sign-in page. There are two kinds of credential:
- OAuth through Auth, the mvdm.io sign-in service. A call without a credential answers 401. Its
WWW-Authenticateheader points to the Protected Resource Metadata athttps://demo.mvdm.io/sales/.well-known/oauth-protected-resource/api. That names Auth, so a client can find it and sign in with the authorization code flow and PKCE. The consent page warns that the client gets all your power, and asks which Account it starts in. - A Personal token. Create one at API & Agent Access and send it on every call. This suits a script or a nightly job:
Authorization: Bearer <token>
Either way, the call acts as you, with everything you can do in Sales. Every member of an Account can use every operation. An ended or expired credential gets 401 on its next call.
One Account at a time
A credential is in one of your Accounts at a time, and every call acts in that Account. Every answer says which Account it acted in, in its account field, as { "id": 7, "name": "..." }. The Accounts calls, accounts.list and accounts.switch, list the Accounts you belong to and move the credential into another one. A switch into an Account without a current Sales License is refused, and the credential stays where it is. A move holds for every later call with that credential, from any client that uses it. Until the Legal terms are accepted, other calls answer 403 browser-handoff, legal-acceptance.accept too.
A call in an Account that has no current Sales License answers 403 with type license-closed. A call with a credential in an Account you no longer belong to answers 403 with type no-account, listing the Accounts you can move to.
Forms and Leads
A Form is one place on your website that collects Leads, usually one per free resource. A Lead is one person who signed up on one Form, by email address. A Form has at most one Lead per email address: signing up again updates that Lead and records when they last signed up.
Leads arrive only through a Form's sign-up endpoint, which your website posts to from the Form's snippet. The API has no operation that creates a Lead. It lists, reads, and deletes them, and leads.add-to-campaign makes one into a Prospect.
Lists
leads.list, forms.list, and campaigns.list answer an envelope:
{ "account": { "id": 7, "name": "..." }, "items": [ ... ], "total": 120, "nextOffset": 50 }
itemsholds one page of rows. Each row carries every field of the resource, and always itsid.totalis the number of rows over all pages.nextOffsetis the$skipof the next page. It is null on the last page, so read pages until it is null.
A list takes five query parameters, written with their $:
$top: the page size, 1 to 200. It defaults to 50.$skip: the number of rows to pass over. It defaults to 0.$orderby: sort keys separated by commas, each with an optionalascordesc, such asemail,id desc. A tie keeps the order ofid.$select: field names separated by commas, such asid,email,name. The row then holds only those fields and itsid.$filter: terms joined withand. The terms each list accepts are below.or,not, any other term, and a field that does not exist answer 422validationon$filter, naming the term.
A value outside its range, one that is not a number, or an unknown field in $select or $orderby answers 422 validation on that parameter, naming the field and the fields that exist.
Leads
leads.list is the Leads page: first sign-up newest first, then id highest first. Sort keys are firstSignedUpAt, lastSignedUpAt, email, and id. Each row holds the Lead's id, url (its page in Sales), formId, formName, email, name, company, pageUrl, the four utm fields, consentVersion and consentText (the text the person ticked at their latest sign-up), firstSignedUpAt and lastSignedUpAt (UTC instants).
Its filter terms are formId eq <number>, firstSignedUpAt ge <instant>, and firstSignedUpAt lt <instant>, each at most once. An instant is ISO 8601 and ends in Z, such as 2026-11-01T00:00:00Z. ge counts the instant itself and lt does not. A formId that is not one of your Forms is not an error: the list is empty.
To copy the Leads that arrived since your last run into another tool, read them oldest first with a Personal token. A shell needs the $ kept out of its own substitution, so single quotes go around each parameter:
curl -s -G 'https://demo.mvdm.io/sales/api/v1/leads' \ -H "Authorization: Bearer $TOKEN" \ --data-urlencode '$filter=formId eq 3 and firstSignedUpAt ge 2026-11-01T00:00:00Z' \ --data-urlencode '$orderby=firstSignedUpAt asc' \ --data-urlencode '$top=100'
When nextOffset in the answer is not null, repeat the call with --data-urlencode '$skip=<nextOffset>'. A Lead that signs up again keeps its firstSignedUpAt, so a filter on it never returns the same person twice.
leads.get: one Lead by itsid, or 404not-found.leads.delete: answers 204 and deletes the Lead with no confirm step. The person is gone from Sales at once; show your person the Lead first. A Lead of another Account answers 404not-found.leads.add-to-campaign: send{ "campaignId": 12 }toPOST /api/v1/leads/{id}/prospect. It makes the Lead a Prospect of the Campaign, as the Lead page's Add to Campaign does, and answers 201 with the new Prospect and its address inLocation. The Prospect has the Lead'semail,name, and company asorganisation, starts in the Campaign's first Status, and gets anemailSourcethat names the Form, the day of the Lead's first sign-up in the time zone of your User (UTC when it has none), and the page, in the language of your User. The Lead stays. A Lead whose email address already is a Prospect of the Account, in any Campaign, answers 422 onemailnaming the Campaign that holds it, and stores nothing. A Lead that would make the Prospect Blocked (see the Prospects guide) is refused the same way, withblockedBy. An unknown Lead or Campaign answers 404not-found.
Forms
forms.list is the Forms page: name order, then id. Sort keys are name, createdAt, and id. Its one filter term is contains(name, '<text>'), which keeps the Forms whose name contains the text, ignoring case. Write a quote inside the text twice (''). Each row holds the Form's id, url, name, domains, privacyUrl, buttonLabel, thankYouText, downloadUrl (null while it has no Download link), askName, askCompany, consentText, consentVersion, leadCount, latestSignUpAt (null while it has no Lead), and createdAt.
forms.get: one Form, or 404not-found.forms.create: send the fields below toPOST /api/v1/forms. It answers 201 with the new Form and its address inLocation:
{
"name": "ISO 27001 template",
"domains": ["example.com"],
"privacyUrl": "https://example.com/privacy",
"downloadUrl": "https://example.com/downloads/iso-27001-template.pdf"
}
A Form needs a name of at most 100 characters. privacyUrl is optional, https or localhost; a Form without it takes no sign-ups. domains are the hostnames your website runs on, and localhost for a page on your own computer; a Form accepts a sign-up only from a page on one of them or on a subdomain of one, and none while the list is empty. buttonLabel, thankYouText, and consentText take Sales's own text in your language when you leave them out. downloadUrl is the web address of the free resource people get after they sign up, a Download link shown with the thank-you text; it must be https (or a localhost address), and a Form without one shows only the thank-you text. askName and askCompany are false when left out. A field you send blank is refused, not defaulted. The member who creates a Form starts with Email me new Leads on for it.
forms.update: send only the fields to change toPATCH /api/v1/forms/{id}. The others keep their value. A newconsentTextgives the Form its nextconsentVersion; Leads already collected keep the text they ticked. A field that cannot be empty answers 422 when you sendnull;downloadUrlandprivacyUrlcan be removed withnullor an empty text.forms.delete: answers 204 and deletes the Form and all its Leads and consent texts with no confirm step; show your person the Form first. A snippet already on a website then stops collecting.forms.snippet:GET /api/v1/forms/{id}/snippetanswers{ "account": ..., "formId": ..., "snippet": "..." }.snippetis the HTML to paste into the page, the same text the Form's page shows.
Campaigns
A Campaign is a list of outreach with its own Statuses: the steps a Prospect moves through. Sales contacts nobody. It tracks outreach your person does elsewhere.
campaigns.list is the Campaigns page: newest first, then id. Sort keys are name, createdAt, and id. Its one filter term is contains(name, '<text>'), which keeps the Campaigns whose name contains the text, ignoring case. Each row holds the Campaign's id, url, name, prospectCount, followUpDueCount (its Prospects that are Follow-up due today, each counted in its own time zone, or in the time zone of your User for an Unknown one), and createdAt.
campaigns.get: one Campaign with itsstatusesin order, or 404not-found. Each Status holdsid,name,position(from 1),followUpAfterWorkingDays(null for none),isFinal, andprospectCount.campaigns.create: send the fields below toPOST /api/v1/campaigns. It answers 201 with the new Campaign and its address inLocation:
{
"name": "Pricing outreach",
"template": "cold-email"
}
A Campaign needs a name of at most 100 characters and Statuses. Give at most one way to start the Statuses; giving more than one answers 422 on template:
template:cold-emailorsimple, with Status names in your language. Left out with nothing else given, the Campaign starts fromcold-email.copyStatusesFromCampaignId: the Statuses of one of your Campaigns, with the same names, flags, and order. A Campaign of another Account answers 404not-found.statuses: your own list, each with aname, afollowUpAfterWorkingDaysfrom 1 to 60 or left out, andisFinal. A name is unique in the Campaign in any letter case and is not the name of a Prospect import column. A final Status has no follow-up.
A refusal answers 422 validation on the field, such as name or statuses[1].name, and stores nothing.
campaigns.update: send only the fields to change toPATCH /api/v1/campaigns/{id}. The others keep their value, and it answers the changed Campaign.statusesis the whole ordered list, numbered 1 to n in the order you send. A row with theidof one of the Campaign's Statuses keeps that Status; a row withoutidadds one; a Status left out of the list is removed. Anidthat is not a Status of this Campaign, or one used twice, answers 422 onstatuses[n].id. The Status rules ofcampaigns.createapply.nameandstatusescannot be empty: sendingnullanswers 422.campaigns.delete: answers 204 and deletes the Campaign and its Statuses and all its Prospects with no confirm step; show your person the Campaign and itsprospectCountfirst.
Prospects
Prospects, their Statuses, and the Prospect import have their own guide: prospects.list, prospects.get, prospects.create, prospects.update, prospects.set-status, prospects.add-note, prospects.record-email-sent, prospects.record-bounce, prospects.delete, and campaigns.import-prospects. The import's columns, History notes, and answers are in REST API: import Prospects.
Email me new Leads
Email me new Leads is a switch per member per Form. It is Sales's only email setting, and a member changes only their own: there is no user in the address or the body.
email-settings.get:GET /api/v1/forms/{id}/email-settings/meanswers{ "account": ..., "formId": ..., "formName": "...", "newLead": true }for you.email-settings.update: send{ "newLead": false }toPATCH /api/v1/forms/{id}/email-settings/me. It answers the same shape with the stored value. An empty body changes nothing.
Both answer 404 not-found for a Form of another Account.
Talking to the Assistant
Hand a task to the Assistant with conversations.create, conversations.send-message, conversations.list-messages, conversations.list, and conversations.stop, and attach a file through uploads.create. The Assistant guide has the rest.
Errors
Every error is ProblemDetails (RFC 9457), as application/problem+json. Its type is a stable token a client can match on. title and detail follow your UI language, English or Dutch.
- 401
unauthorized: no credential, or one that is unknown, ended, or expired. - 402
allowance-exhausted: the Assistant allowance is empty. - 403
no-account: the credential is in an Account you no longer belong to. - 403
license-closed: the Account has no current License. - 404
not-found: no such record in this Account. - 409
conflict: a turn of the conversation is still running. - 422
validation: the input was refused.errorsnames the fields, ordetailgives the reason. - 429
rate-limited: over the rate limit. - 500
about:blank: an unexpected failure.
Rate limit
Each User may make 600 calls in 60 seconds, shared by every credential, Agent, and script of that User, over REST and MCP. A call over the limit answers 429 with a Retry-After header, in seconds. Wait that long, then retry.
Collecting Leads is a different endpoint
A website posts a sign-up to its Form's own endpoint, with the snippet from forms.snippet. That endpoint is separate from this API. It is not in the OpenAPI document, it takes no bearer credential, and this guide does not cover it.
v1 only grows
New operations and new optional fields can appear, but nothing in v1 is removed or renamed, and no optional field becomes required. A breaking change ships as /api/v2/ beside v1.
Other ways in
Agents that speak MCP can connect to the MCP server at https://demo.mvdm.io/sales/mcp. See the guides for each Agent. For scripts in a terminal, see the CLI guide.