Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
tasks
/
{taskId}
/
cancel
Cancel a running task (A2A)
curl --request POST \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/tasks/{taskId}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "status": "canceled"
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Path Parameters

agentId
string
required
Maximum string length: 64
taskId
string
required
Maximum string length: 128

Response

Task canceled.

id
string
status
string
Example:

"canceled"