Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer YOUR_API_KEY.

Headers

Idempotency-Key
string

Optional retry key for create-style operations. Reusing the same key with the same request returns the original result; reusing it with a different request returns 409.

Required string length: 1 - 255

Path Parameters

id
string
required

Agent id.

Minimum string length: 1
outcome
string
required

The call outcome whose chain to append to. Accepts the raw disposition (SUCCESS), any case (success), or the label the dashboard shows (On callback). Rejected with 400 if the agent's type can never emit it — see dispositions from GET /api/v2/projects/systems.

Minimum string length: 1

Query Parameters

locationId
string

Pair with campaignId; omit both for primary campaign.

Minimum string length: 1
campaignId
string

Pair with locationId; omit both for primary campaign.

Minimum string length: 1

Body

application/json

Request payload. Detailed schema pending — see the route handler.

nodes
object[]
required

Appended in order to the end of the outcome chain, as one atomic write.

Minimum array length: 1

A router to add. One router produces a branch node plus a linear chain per case, which is why the cases carry their own actions rather than being wired separately.

expectedVersion
integer

Optimistic-concurrency guard: rejected with 409 if the stored version has moved on.

Required range: x >= 0
Example:

3

{key}
any

Response

The updated workflow.

success
boolean
required
Example:

true

workflow
object | null
required
warnings
object[]

Everything about the graph that is worth knowing and was not worth refusing. Empty on a clean graph. Read this after a write: a 200 means the graph was stored, not that every node will do something.