Ask for a place to upload a file
The first of three calls that put a CSV on a campaign: it answers with an uploadId to keep and a url to PUT the file to within the hour. Nothing is created until you start the import with that uploadId. Needs the leads:write scope and the Import leads permission.
AuthorizationBearer <sk_live_...>Your API key in an Authorization header: Authorization: Bearer sk_live_.... When a request carries a Bearer key and an x-api-key header, the Bearer key is used.
application/json- body
fileName*stringThe file's name. It becomes the end of the uploadId, with any character other than a letter, digit, dot, dash or underscore turned into an underscore, and in that form it names the new list by default.
1 <= length <= 255byteSize*integerThe file's size in bytes, at most 512 MB.
1 <= value <= 536870912Where to put the file. PUT its bytes to url before expiresAt, then start the import with uploadId.
application/json- response
uploadId*stringOpaque. Keep it as it is and send it to start the import. A start refuses an uploadId that isn't this agency's.
url*stringWhere to PUT the file's bytes, and nothing else, before expiresAt. This address is file storage, not this API: send no API key to it, because the storage refuses a request that carries two credentials. An answer of 200 means the file is there. An upload that is never started is deleted after a while.
uriexpiresAt*stringWhen url stops working, one hour after this answer. Ask for a new one with POST /uploads if it passes.
date-timecurl -X POST 'https://www.inyoke.com/api/v1/uploads' \ -H 'Content-Type: application/json' \ -d '{ "fileName": "leads.csv", "byteSize": 48213}'{ "uploadId": "imports/cmh8w3k2c0000ab12cd34ef56/9f2c4e7a1b8d3f60a5c2e4b79d1a8f35/leads.csv", "url": "https://files.example.com/imports/cmh8w3k2c0000ab12cd34ef56/9f2c4e7a1b8d3f60a5c2e4b79d1a8f35/leads.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=EXAMPLE", "expiresAt": "2026-10-30T15:05:00.000Z"}Remove leads from a campaign POST
Stops dialing these leads on this campaign, exactly as Remove does on the website, and answers one line per entry in the order sent. Lead lists and the leads themselves are untouched, and a later playlist sync, list re-attach or import can put a removed lead back. Needs the leads:write scope, and the Create campaigns permission with See campaigns set to Everyone's.
Start an import POST
Starts the website's own import of an uploaded file onto a campaign, in the background; watch it with GET /imports/{importId}. Imports run one at a time in an agency, so a start while another runs answers 409 import_running: retry it later with the same Idempotency-Key. Needs the leads:write scope and the Import leads permission.