Skip to main content
POST
Reserve an upload
Reserves a slot for one contacts file and answers with where to upload it. Upload the file there, then create the campaign with the slot’s import.id. Nothing is created before that, so an upload that fails leaves no campaign behind. Who may call it: any API key of the workspace; in the dashboard, an owner, admin or developer. The workspace needs the Pro plan.

Body

string
required
Your name for the file, 1 to 255 characters. It is shown with the campaign; the file is stored under a name Verbeo chooses.
number
required
The file’s size in bytes, from 1 to 52428800 (50 MB). wc -c < contacts.ndjson prints it. Once the campaign is created, the size it holds is the one stored.
number
How many contacts the file holds, from 1 to 100000. It is shown as the import’s expected_count until Verbeo has counted the lines.

Request

Response

201 Created: the upload’s import object, and where to send the file.
string
required
The import_id to create the campaign with.
string
required
Where to upload the whole file with one PUT. Use it exactly as given.
string
required
Always application/x-ndjson: the Content-Type to upload with.
string
required
When the link stops working, 2 hours after the reserve. Create the campaign before then.
string
required
For a resumable (TUS) upload, the way the dashboard sends the file: in 6 MB pieces, with upload.token as the x-signature header, and bucketName, objectName and contentType set to upload.bucket, upload.path and upload.content_type.

Upload the file

  • Send only the Content-Type. The link goes to Verbeo’s file storage, not to api.verbeo.ai; the token in it is the credential, so no API key goes with it.
  • A 2xx answer means the file is stored. The storage takes files of up to 50 MB, of type application/x-ndjson only.
  • The format is on the overview: The contacts file.
Use --data-binary. curl’s -d strips the newlines between the lines, which turns the whole file into one line that is not a contact.

Errors

And the errors every route can give.