Cancel agent run
Cancel a queued or running agent run. An in-flight loop on this instance is told to stop (no further model steps); the run settles cancelled either way. A run with no live loop anywhere also has its credit hold settled (released when no model request was sent, otherwise kept for reconciliation). Cancelling is idempotent: an Idempotency-Key is accepted but not required. Returns 409 when the run already finished.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Optional. Accepted for consistency with other mutations; repeating a cancel is already safe.
1 - 200Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Managed agent id (UUID), as returned by the list/create agents endpoints.
Agent run id (UUID), as returned by the start/list runs endpoints.