Stop a running execution of an agent
POSThttps://platform.docana.com/api/v1/agents/:agentId/executions/:executionId/stop/
Signals the worker running the execution to abort the in-flight run, then flips the persisted status from RUNNING to STOPPED. This also clears orphaned executions stuck in RUNNING after their worker died. Idempotent: stopping an execution that already finished or stopped returns stopped: false with alreadyTerminal: true. applicationId is a required query parameter.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The stop outcome (idempotent)
Missing or invalid applicationId
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
Execution not found or not accessible
Unexpected server error.