Complete a local run
In draft mode, send media and caption only. In auto mode, every TikTok and YouTube target needs a published_targets entry from a direct upload.
POST
/api/agent/runs/{id}/complete-localAuthorization
AuthorizationBearer token (ba_run_...) · headerrequiredPer-run token returned by start, valid for 6 hours and bound to one run.
or
AuthorizationBearer token (ba_sk_...) · headerrequiredAPI key from /dashboard/api-keys. Keys expire after 365 days.
Path parameters
idstringrequiredRun id
Request body
requiredapplication/jsoncaptionstringrequiredmax length 2200
titlestringmedia_typestringAllowed:
imagecarouselvideomedia_urlsstring<uri>[]max items 10
slidesSlide[]max items 10
Show propertiesHide properties
Array of
Slidetextstringmax length 500
urlstring<uri>requiredaspect_ratiostringdefault: "9:16"
published_targetsobject[]max items 12
Show propertiesHide properties
Array of
objectsocial_account_idstring<uuid>platformstringAllowed:
tiktokyoutubedirect_upload_idstring<uuid>metadataobjectexecutor_idstringResponses
200
OK
object400
INVALID_RUN_OUTPUT
errorstringrequiredcodestring401
Missing, invalid, expired, or revoked API key
errorstringrequiredcodestring409
RUN_CONFLICT, AUTOMATION_PAUSED, REVISION_STALE, or AUTOMATION_REMOVED
errorstringrequiredcodestring