Stop a running task
Cancel a running task. Sends a stop signal to the worker executing the task, marks the execution asDocumentation Index
Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
Use this file to discover all available pages before exploring further.
stopped, and sets is_manually_stopped: true. Returns the updated task record.
The endpoint is idempotent: calling it on a task that is already in a terminal state (completed, failed, stopped) returns the current execution unchanged.
status set to stopped and is_manually_stopped set to true.
| Status | Meaning |
|---|---|
| 200 | Stop signal accepted (or task already in a terminal state) |
| 401 | Unauthorized (invalid API key) |
| 403 | Forbidden (task belongs to a different organization) |
| 404 | Task not found |
| 422 | Validation error (malformed task_id) |
completed, failed, or stopped are returned unchangedstatus becomes stoppedis_manually_stopped: true distinguishes user-initiated cancels from system-side terminationsAPI Key for authentication
Successful Response
pending, executing, paused, error, failed, completed, stopped Model representing human-in-the-loop approval records for tasks.
Attributes: wait_node_id (str): The id of the node that triggered this HITL.
text, markdown, json, voice default, harder Snapshot of the effective LLM provider used for this execution. Reflects the per-execution override when supplied on the invocation request, otherwise falls back to the agent's configured provider.
Snapshot of the effective model name used for this execution. Reflects the per-execution override when supplied on the invocation request, otherwise falls back to the agent's configured model.
Snapshot of the effective reasoning effort used for this execution. Reflects the per-execution override when supplied on the invocation request, otherwise falls back to the agent's configured reasoning effort.
low, medium, high, xhigh