Sales

This is the Sales demo. Every visitor shares this company, and it resets every night.

What you change here, everyone sees until the next reset. Email is switched off, and the demo accepts no sign-ups.

Start your own trial
Assistant allowance Start your own trial
SV
Sam de Vries
sam.devries@tidewell-it.example

REST API import Prospects

API & Agent Access

Import Prospects

campaigns.import-prospects: send a CSV (UTF-8) or Excel (.xlsx) file as the multipart field file to POST /api/v1/campaigns/{id}/import-prospects, and the Prospects in it join the Campaign, all or none. It is the one call that is not JSON:

curl -s 'https://demo.mvdm.io/sales/api/v1/campaigns/12/import-prospects' \
  -H "Authorization: Bearer $TOKEN" \
  -F 'file=@prospects.csv'

The first row is the header. Email and Email source are required columns. Name, Role, Organisation, Why it fits, Notes, History note, History note date, Tags, Time zone, Email sent, Email subject, Message-ID, Email bounced, and Status (the name of one of the Campaign's Statuses; empty means the first) are optional, in English or Dutch (Tijdzone), in any order and letter case. Tags holds Tags separated by commas, at most 50 characters each; Time zone holds an IANA name such as America/New_York, or is empty for Unknown. A Tag typed in another letter case than one the Account has already, or than an earlier row of the file, takes that spelling. A row skipped as a Prospect already changes nothing about that Prospect's Tags or time zone. A column named exactly as one of the Campaign's Statuses holds the date (YYYY-MM-DD, not after today) the Prospect reached it, so its history keeps when. History note adds a note entry, dated by History note date (YYYY-MM-DD, or YYYY-MM-DD HH:MM in your User's time zone; a date alone is 12:00 UTC; empty is the import's moment; not after now), to the Prospect with the row's email in any Campaign, also when the row is skipped. One note per row: repeat a row for each note. A note is not added twice (an empty date: same text at any date). Email sent, Email subject, Message-ID, and Email bounced record an email_sent entry, and a bounce entry on it, in the History of the Prospect with the row's email in any Campaign, also when the row is skipped or the Prospect is in a final Status. A row holds at most one Sent email: Email subject is required when any of the four has a value (at most 500 characters, as is Message-ID); Email sent and Email bounced take YYYY-MM-DD, YYYY-MM-DD HH:MM (in your User's time zone) or a typed Excel date, a date alone is 12:00 UTC, not after now; an empty Email sent is the import's moment; Email bounced cannot come before it. Repeat a row for each email. A Sent email is not added twice: same Message-ID, or without one the same subject at the same minute (an empty Email sent: any time). A row repeating a Sent email adds its Bounce when that Sent email has none, and otherwise skips it without being wrong. Campaign, Last change, and Last email are ignored, so an export imports again. A row whose email is a Prospect of the Account already, or repeats an earlier row, is skipped, and is never refused as Blocked. A row that would be Blocked by a Prospect in a final Status, in the Account or in the file, is a wrong row; a row in a final Status is never refused by this. The limits are 5,000 rows and 5 MB. It answers { "imported": 40, "skipped": 2, "notesAdded": 3, "sentEmailsAdded": 5, "bouncesAdded": 1 }. A wrong file or row answers 422 on file with one sentence per problem, naming each wrong row by number (the header is row 1), and stores nothing. A row blocked by a Prospect of the Account also appears in blockedRows: { "row": 14, "blockedBy": { ... } }; a row blocked by another row of the file has no entry.

Other ways in

The rest of the REST API is in the REST API guide. Agents that speak MCP can connect to the MCP server at https://demo.mvdm.io/sales/mcp. See the guides for each Agent.

Are you sure?

This action cannot be reverted.

Leave this page?

Your changes on this form are not saved. If you leave, they are lost.