TubeOnAITubeOnAIDevelopers
Skip to Content
TubeOnAITubeOnAIDevelopers

Create an upload

POST
/v1/ai/uploads

Authorization

bearerAuth
headerAuthorizationBearer <token>

Header Parameters

Idempotency-Key*string

Required stable key for one immutable upload request

Request Body

application/json
  1. body

Immutable metadata for one upload. AI clients cannot select another upload purpose.

content_type*string
declared_size_bytes*integer
Formatint64
Range0 <= value
expected_sha256?string|null
original_filename?string|null

Response Body

application/json
  1. response
expires_at_ms*integer
Formatint64
grant*
id*string
Formatuuid
Example Request
curl -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"}