Run Job Api V1 Workstreams Jobs Job Id Run Post
post
/api/v1/workstreams/jobs/{job_id}/runRun job (fan-out across clients)
Resolve the job's target_selector to a list of clients, then create
one agentic cycle per client and start Temporal workflows.
If `client_ids` is provided in the request body, it overrides the
job's target_selector (useful for manual runs on a subset).
Path parameters
job_idrequiredpath | — |
Request bodyapplication/json
FanOutRequest | nullResponses
201Successful Response
| Field | Type | Description |
|---|---|---|
job_definition_idrequired | string | — |
job_permakey | string | null | Job permakey for the batch deep-link URL (#173); null on legacy rows. |
total_clientsrequired | integer | — |
cycles_createdrequired | integer | — |
cycles_failedrequired | integer | — |
cyclesrequired | object[] | —item shapeEmpty object. |
errorsrequired | object[] | —item shapeEmpty object. |
422Validation Error
| Field | Type | Description |
|---|---|---|
detail | ValidationError[] | —item shape |
curl https://api.dev.arch.ie/api/v1/workstreams/jobs/<job_id>/run \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d 'null'