Reserve a media upload for a run
Same contract as POST /api/cli/media/uploads, authenticated with the run token.
POST
/api/agent/runs/{id}/media/uploadsAuthorization
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/jsonasset_idstring<uuid>Optional, for idempotent retries
content_typestringrequiredAllowed:
image/jpegimage/pngimage/webpvideo/mp4content_lengthintegerrequiredImages up to 15 MiB, MP4 up to 200 MiB
min 1
content_sha256stringrequiredmatches ^[a-f0-9]{64}$
content_md5stringrequiredmatches ^[a-f0-9]{32}$
Responses
201
Reserved
object401
RUN_TOKEN_REQUIRED
errorstringrequiredcodestring