Nimply Developers
API ReferenceMedia

Start a direct binary upload

POST
/v1/media/uploads

For files you have as bytes rather than at a public URL (and for large videos). Returns a presigned PUT URL: upload the raw file bytes to it with the exact Content-Type given, then call complete. The URL expires after an hour; plan quotas are checked against the declared size.

AuthorizationBearer <token>

Workspace API key (nim_live_...)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/media/uploads" \  -H "Content-Type: application/json" \  -d '{    "fileName": "launch-video.mp4",    "contentType": "video/mp4",    "sizeBytes": 10485760  }'
{  "mediaId": "string",  "uploadUrl": "string",  "method": "PUT",  "headers": {    "Content-Type": "video/mp4"  },  "expiresInSeconds": 3600}
Empty