Open a TikTok or YouTube direct upload
MP4 only, up to 64 MiB. YouTube also requires the parent runner to send x-brainy-runner-key: ba_sk_....
POST
/api/agent/runs/{id}/direct-uploadAuthorization
AuthorizationBearer token (ba_run_...) · headerrequiredPer-run token returned by start, valid for 6 hours and bound to one run.
Path parameters
idstringrequiredRun id
Request body
requiredapplication/jsonsocial_account_idstring<uuid>requiredtitlestringrequiredmin length 1 · max length 100
descriptionstringmax length 2200
content_typestringrequiredcontent_lengthintegerrequiredmax 67108864
content_sha256stringrequiredmatches ^[a-f0-9]{64}$
content_md5stringmatches ^[a-f0-9]{32}$
Responses
200
OK
sessionobject401
RUN_TOKEN_REQUIRED or SOCIAL_TOKEN_EXPIRED
errorstringrequiredcodestring403
YOUTUBE_PARENT_RUNNER_REQUIRED
errorstringrequiredcodestring409
DIRECT_UPLOAD_CONFLICT
errorstringrequiredcodestring