Start a resumable upload of arbitrary media content. Returns a TUS upload URL and a short-lived bearer token used to authenticate subsequent chunk requests (no DPoP required on chunks). The DID of the authenticated user is recorded against the upload; on completion a VOD processing task is enqueued.
POST
/xrpc/place.stream.media.createUpload
const url = 'https://example.com/xrpc/place.stream.media.createUpload';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"size":1,"mimeType":"example","filename":"example","draftUri":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/xrpc/place.stream.media.createUpload \ --header 'Content-Type: application/json' \ --data '{ "size": 1, "mimeType": "example", "filename": "example", "draftUri": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
size
required
Total size of the upload in bytes.
integer
mimeType
required
MIME type of the content being uploaded (e.g. video/mp4).
string
filename
Optional filename hint to attach as upload metadata.
string
draftUri
Optional ats:// URI of a draft VOD created via place.stream.vod.createDraft. When supplied, the upload’s processing fills that draft (rather than creating a new one), so the user can edit metadata while the upload runs and re-upload if it fails. The draft’s origin_upload_id is set to this upload.
string
Example generated
{ "size": 1, "mimeType": "example", "filename": "example", "draftUri": "example"}Responses
Section titled “Responses”Success
Media typeapplication/json
object
uploadId
required
Server-side identifier for this upload.
string
uploadUrl
required
Absolute URL to PATCH/HEAD per the TUS protocol.
string format: uri
uploadToken
required
Short-lived bearer token bound to this upload. Send as ‘Authorization: Bearer
string
expiresAt
required
When the upload token expires.
string format: date-time
Example generated
{ "uploadId": "example", "uploadUrl": "https://example.com", "uploadToken": "example", "expiresAt": "2026-04-15T12:00:00Z"}Bad Request
