Claim a queued run (legacy queue)
Atomically claims one pending run. {"run": null} means no work. The legacy queue publishes to Instagram only; new integrations should use local automations.
POST
/api/agent/runs/claimAuthorization
AuthorizationBearer token (ba_sk_...) · headerrequiredAPI key from /dashboard/api-keys. Keys expire after 365 days.
Request body
application/jsonautomation_idstringlease_secondsintegermin 60 · max 3600 · default: 900
Responses
200
OK
runobject | null401
Missing, invalid, expired, or revoked API key
errorstringrequiredcodestring