InyokeDocs

Start a file

POST
/listings/{listingId}/files

Start reading a file you have put at its upload address, onto one of your ads. Read its progress with GET /files/{fileId}. A start that timed out can be sent again with the same uploadId to the same ad. It answers the same fileId and starts nothing twice. One file is read at a time. Starting another while one is being read is refused with file_open. A file holds at most 200,000 rows. A file over that, or over what's left of your allowance, fails whole, and its rows use none of it. Needs the leads:write scope.

Authorization

headerAuthorizationBearer <sk_live_...>

Your API key in an Authorization header: Authorization: Bearer sk_live_....

Path Parameters

listingId*string

Your ad's id, from GET /listings.

Request Body

application/json
  1. body
uploadId*string

The uploadId that POST /uploads answered.

Length1 <= length
fileName*string

The file's name, as sent to POST /uploads.

Length1 <= length
size*integer

The file's size in bytes, as sent to POST /uploads.

Range1 <= value
scrubbedAt*string

The day, YYYY-MM-DD in UTC, you checked this file against the National Do Not Call Registry.

Formatdate

Response Body

The file's id.

application/json
  1. response
fileId*string
Example Request
curl -X POST 'https://www.inyoke.com/api/vendor/v1/listings/vnd-ad-3f9c2a7e1b4d8f60a5c2e4b7/files' \  -H 'Content-Type: application/json' \  -d '{  "uploadId": "imports/vnd-cm3p8k2tn0000/9f2c4e7a1b8d3f60a5c2e4b79d1a8f35/leads.csv",  "fileName": "leads.csv",  "size": 48213,  "scrubbedAt": "2026-11-03"}'
Example Response
{  "fileId": "cm3p8k2fb0009"}