Start a file
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.
AuthorizationBearer <sk_live_...>Your API key in an Authorization header: Authorization: Bearer sk_live_....
listingId*stringYour ad's id, from GET /listings.
application/json- body
uploadId*stringThe uploadId that POST /uploads answered.
1 <= lengthfileName*stringThe file's name, as sent to POST /uploads.
1 <= lengthsize*integerThe file's size in bytes, as sent to POST /uploads.
1 <= valuescrubbedAt*stringThe day, YYYY-MM-DD in UTC, you checked this file against the National Do Not Call Registry.
dateThe file's id.
application/json- response
fileId*stringcurl -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"}'{ "fileId": "cm3p8k2fb0009"}Ask for a place to put a file POST
Ask for a place to put one CSV file. Nothing is started yet. `url` is signed for exactly `size` bytes, so a `PUT` of any other size fails. Put the file there before `expiresAt`. Keep `uploadId` as it is, and send it to start the file. Only your account can start it. You can ask for 20 upload addresses a day. Needs the leads:write scope.
Read a file GET
One of your files: where it stands, how many rows were read and refused, and the first refusals. `rowsTotal` is null until the file has been counted. `rowsProcessed` and `rowsInvalid` are rows read and rows refused. `rejectSample` holds the first 20 refused rows, by row number, with a sentence each. `pulledAt` is set on a file taken off sale. `failure` says why a `FAILED` file stopped. Read to the end says nothing about what went on sale. Needs the leads:read scope.