InyokeDocs

Ask for a place to put a file

POST
/uploads

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.

Authorization

headerAuthorizationBearer <sk_live_...>

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

Request Body

application/json
  1. body
fileName*string

The file's name.

Length1 <= length
size*integer

The file's size in bytes, at most 50 MB.

Range1 <= value <= 52428800

Response Body

Where to put the file.

application/json
  1. response
uploadId*string
url*string
expiresAt*string
Example Request
curl -X POST 'https://www.inyoke.com/api/vendor/v1/uploads' \  -H 'Content-Type: application/json' \  -d '{  "fileName": "leads.csv",  "size": 48213}'
Example Response
{  "uploadId": "imports/vnd-cm3p8k2tn0000/9f2c4e7a1b8d3f60a5c2e4b79d1a8f35/leads.csv",  "url": "https://files.example.com/…?X-Amz-Signature=…",  "expiresAt": "2026-11-04T15:05:00.000Z"}