InyokeDocs
Imports

Ask for a place to upload a file

POST
/uploads

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.

Authorization

headerAuthorizationBearer <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.

Request Body

application/json
  1. body
fileName*string

The 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.

Length1 <= length <= 255
byteSize*integer

The file's size in bytes, at most 512 MB.

Range1 <= value <= 536870912

Response Body

Where to put the file. PUT its bytes to url before expiresAt, then start the import with uploadId.

application/json
  1. response
uploadId*string

Opaque. Keep it as it is and send it to start the import. A start refuses an uploadId that isn't this agency's.

url*string

Where 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.

Formaturi
expiresAt*string

When url stops working, one hour after this answer. Ask for a new one with POST /uploads if it passes.

Formatdate-time
Example Request
curl -X POST 'https://www.inyoke.com/api/v1/uploads' \  -H 'Content-Type: application/json' \  -d '{  "fileName": "leads.csv",  "byteSize": 48213}'
Example Response
{  "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"}