Ask for a place to put a file
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.
AuthorizationBearer <sk_live_...>Your API key in an Authorization header: Authorization: Bearer sk_live_....
application/json- body
fileName*stringThe file's name.
1 <= lengthsize*integerThe file's size in bytes, at most 50 MB.
1 <= value <= 52428800Where to put the file.
application/json- response
uploadId*stringurl*stringexpiresAt*stringcurl -X POST 'https://www.inyoke.com/api/vendor/v1/uploads' \ -H 'Content-Type: application/json' \ -d '{ "fileName": "leads.csv", "size": 48213}'{ "uploadId": "imports/vnd-cm3p8k2tn0000/9f2c4e7a1b8d3f60a5c2e4b79d1a8f35/leads.csv", "url": "https://files.example.com/…?X-Amz-Signature=…", "expiresAt": "2026-11-04T15:05:00.000Z"}Read a day's posts GET
What one ad's posts received and refused on one UTC day, in all and post by post. `calls` lists that day's posts, oldest first, each by the `callId` its answer gave. A row received and later refused, because its ad changed before it went in, counts in both. A retired ad's feed can still be read. Needs the leads:read scope.
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.