Abort Last Worker Run
Method: POST
Endpoint: /api/v2/worker-runs/last/abort
Authentication: Supports Authorization: Bearer <YOUR_API_KEY>, api-key: <YOUR_API_KEY>, and ?token=<YOUR_API_KEY>. Prefer Bearer token.
Try it
Section titled “Try it”POST
/api/v2/worker-runs/last/abortAbort last worker runAuthenticationRequired
Stored only in this browser tab. Sent only to https://openapi.coreclaw.com.
Request BodyNot applicable
No JSON request body is defined for this operation.
When to use this endpoint
Section titled “When to use this endpoint”Use this endpoint to abort an abortable run. Confirm the target before calling it.
Request Example
Section titled “Request Example”curl -X POST "https://openapi.coreclaw.com/api/v2/worker-runs/last/abort" \ -H "Authorization: Bearer YOUR_API_KEY"Response Example
Section titled “Response Example”{ "code": 0, "message": "success", "request_id": "req-123"}- API v2 supports Bearer token, the legacy
api-keyheader, and query token. Prefer Bearer token for new integrations. - This is an account-level latest-run endpoint and does not take a
workerIdpath parameter; it operates on the latest run in the current account scope. lastmeans the latest run in the current scope. Use a concreterunIdendpoint when the target must be explicit.
HTTP Responses
Section titled “HTTP Responses”| HTTP Status | Application Code | Meaning |
|---|---|---|
200 | 0 | OK |
400 | 11000 | Bad Request |
401 | 12001 | Unauthorized |
404 | 11004 | Not Found |
429 | 13000 | Too Many Requests |
500 | 10000 | Internal Server Error |