Endpoint
Description
Pauses a running task at the next workflow checkpoint. The current activity (LLM call, tool, etc.) is allowed to finish, and then the workflow blocks until it is resumed or cancelled. Use this when you want to temporarily stop long‑running research or supervisor workflows without losing progress.Authentication
Required: Yes Include API key in header:Request
Headers
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | API authentication key |
Content-Type | No | application/json if body |
traceparent | No | W3C trace context |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Task ID (Temporal workflow ID) |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
reason | string | No | Optional pause reason note |
Request Body Example
Response
202 Accepted
404 Not Found
409 Failed Precondition
Cannot pause task in invalid state:401 / 403
Notes
- Pause takes effect at well‑defined checkpoints (e.g., pre_execution, pre_completion); it does not interrupt in‑flight activities.
- While paused, SSE streams will emit
workflow.pausingandworkflow.pausedevents with acheckpointfield. - Ownership and tenancy are enforced: users can only pause their own tasks.