Skip to main content
POST
Abort a turn
Asks the agent to stop its current turn. Use it to cancel work that went off course. A turn that never started is abandoned at once, and a running one stops once the sandbox confirms. Related guide: Agent access: grant credentials to agents. Asks the agent to stop. A turn that never reached a sandbox is abandoned outright (aborted: true); a running one is flagged and the sandbox confirms (delivered: true).
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

turnId
string
required

Response

The outcome

aborted
boolean
delivered
boolean