Read a file
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.
AuthorizationBearer <sk_live_...>Your API key in an Authorization header: Authorization: Bearer sk_live_....
fileId*stringThe fileId that POST /listings/{listingId}/files answered.
The file.
application/json- response
id*stringtypeId*stringfileName*stringstatus*stringQUEUED: Waiting to be read.RUNNING: Being read.DONE: Read to the end. It says nothing about what went on sale.FAILED: Stopped, andfailuresays why.PULLED: Taken off sale before it was read to the end.
"QUEUED""RUNNING""DONE""FAILED""PULLED"rowsTotal*integer|nullrowsProcessed*integerrowsInvalid*integerrejectSample*array<>|nullscrubbedAt*string|nullcreatedAt*stringpulledAt*string|nullfailure*string|nullcurl -X GET 'https://www.inyoke.com/api/vendor/v1/files/cm3p8k2fb0009'{ "id": "cm3p8k2fb0009", "typeId": "vnd-ad-3f9c2a7e1b4d8f60a5c2e4b7", "fileName": "leads.csv", "status": "DONE", "rowsTotal": 1200, "rowsProcessed": 1200, "rowsInvalid": 14, "rejectSample": [ { "row": 7, "reason": "No valid consent date" } ], "scrubbedAt": "2026-11-03T00:00:00.000Z", "createdAt": "2026-11-04T14:05:00.000Z", "pulledAt": null, "failure": null}Start a file POST
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.
Take a number back POST
Take one number off sale on all your ads. The answer is the same whatever is found. It answers `{ accepted: true }` whether the number was on sale, still waiting, already sold, or never sent at all. A number already sold stays sold: a sold lead can't be taken back from an agency. The removal goes to the platform as a request. A file still being read can bring the number back if it is further down that file. Remove it again once the file has been read. One number per call. It needs nothing signed. Needs the leads:write scope.