REST APIEndpoint reference
Create an upload
POST
bearerAuthheader
AuthorizationBearer <token>Idempotency-Key*stringRequired stable key for one immutable upload request
application/json- body
Immutable metadata for one upload. AI clients cannot select another upload purpose.
content_type*stringdeclared_size_bytes*integerFormat
int64Range
0 <= valueexpected_sha256?string|nulloriginal_filename?string|nullapplication/json- response
expires_at_ms*integerFormat
int64grant*id*stringFormat
uuidcurl -X POST 'https://beta.app.tubeonai.com/v1/ai/uploads' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "content_type": "string", "declared_size_bytes": 0}'Example Response
{ "expires_at_ms": 0, "grant": { "expires_at_ms": 0, "headers": { "property1": "string", "property2": "string" }, "object_key": "string", "upload_url": "string" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"}