Skip to main content
POST
Cancel Run

Code Examples

Headers

Authorization: Pass your API key as a Bearer token in the Authorization header: Authorization: Bearer YOUR_API_KEY.
integer
required
ID of the workspace. Required for all Digital Employees API requests.

Path Parameters

integer
required
The ID of the digital employee.
integer
required
The ID of the run to cancel. The run must be running or awaiting_approval.
This cancels the run immediately. The stored status becomes failed, and error_message is Cancelled by user.. The employee is no longer marked as running, so another run can start. The caller must be allowed to invoke autopilots and must be the employee owner, the workspace owner, or someone with permission to manage digital employees.

Response

Errors