Complete a claimed run (legacy queue)
POST
/api/agent/runs/{id}/completeAuthorization
AuthorizationBearer token (ba_sk_...) · headerrequiredAPI key from /dashboard/api-keys. Keys expire after 365 days.
or
AuthorizationBearer token (ba_mcp_access_...) · headerrequiredThe OAuth access token the hosted MCP server issues (brainy:read for GET routes, brainy:write for everything else). One login serves MCP, the CLI and the desktop app. A token without the needed scope gets 403 Insufficient scope.
Path parameters
idstringrequiredRun id
Request body
requiredapplication/jsonclaim_tokenstringrequiredcaptionstringrequiredmax length 2200
media_urlsstring<uri>[]max items 10
slidesSlide[]max items 10
Show propertiesHide properties
Array of
Slidetextstringmax length 500
urlstring<uri>requiredaspect_ratiostringdefault: "9:16"
metadataobjectResponses
200
OK
runobject400
PLATFORM_NOT_AVAILABLE
errorstringrequiredcodestring401
Missing, invalid, expired, or revoked API key
errorstringrequiredcodestring404
NOT_FOUND
errorstringrequiredcodestring409
CLAIM_CONFLICT, CLAIM_EXPIRED, or TARGET_MISSING
errorstringrequiredcodestring