InyokeDocs

Read a file

GET
/files/{fileId}

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.

Authorization

headerAuthorizationBearer <sk_live_...>

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

Path Parameters

fileId*string

The fileId that POST /listings/{listingId}/files answered.

Response Body

The file.

application/json
  1. response
id*string
typeId*string
fileName*string
status*string
  • QUEUED: Waiting to be read.
  • RUNNING: Being read.
  • DONE: Read to the end. It says nothing about what went on sale.
  • FAILED: Stopped, and failure says why.
  • PULLED: Taken off sale before it was read to the end.
Value in"QUEUED""RUNNING""DONE""FAILED""PULLED"
rowsTotal*integer|null
rowsProcessed*integer
rowsInvalid*integer
rejectSample*array<>|null
scrubbedAt*string|null
createdAt*string
pulledAt*string|null
failure*string|null
Example Request
curl -X GET 'https://www.inyoke.com/api/vendor/v1/files/cm3p8k2fb0009'
Example Response
{  "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}