Create Agent Run
POST /agent/runs
Start a durable agent run.
“Run” is the public noun; the stored row is a work item and every internal
name says so. The same translation app_pages_router makes for dashboards,
and for the same reason: the public contract should read the way a builder
thinks, not the way the table is named.
workflow_started: false is a NORMAL outcome, not an error. The row is
persisted either way; a false means the Temporal worker did not pick it up
on this attempt and the reason is carried alongside it.
Authorizations
Parameters
Header Parameters
Request Body required
Start a durable agent run. See the module docstring for what is omitted.
object
Which agent drives the loop: ‘onboarding’, ‘dialer_setup’, ‘sequencer_setup’, ‘campaign_run’, ‘voice_setup’, ‘marketplace’, ‘dev_setup’, or a free-form value for an ad-hoc session.
Free text the planner works from.
‘private’ (default) keeps the run yours. ‘shared’ lets the organization see it, though only you can cancel it.
Responses
201
Successful Response
object
object
False is NORMAL, not an error: the run is stored either way and no worker picked it up on this attempt. Poll the run rather than retrying the create, which would start a second one.
422
Validation Error