Create a task
POST/api/v1/tasks
Creates a task bound to a workflow. By default the task is placed in the workflow's initial state; passing state places it directly in that named state instead — an alternate entry point for starting a task mid-flow (e.g. "a new recorte for an existing theme by id"), rather than re-submitting from the initial state and hoping a guard or similarity gate recognizes it. Entering the resulting state, initial or named, behaves identically: that state's on_enter automation fires and its stalled_after clock arms.
Request
Responses
- 200
- 201
- 400
- 401
- 403
- 404
- 409
- 413
- 429
- 500
The idempotency key already names a task created by the same request; that task is returned as it is now and no second task is created
Task created
Bad request — invalid payload (TASK_PAYLOAD_INVALID), state does not name a declared state of the workflow (TASK_STATE_NOT_FOUND), or an invalid idempotency key (VALIDATION_FAILED)
Unauthorized
Forbidden
Workflow not found
The idempotency key names a task created by a different request (IDEMPOTENCY_KEY_REUSED)
REQUEST_REJECTED — the request body is over the size the body parser accepts
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded