Skip to content

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.

POST/api/v2/worker-runs/last/abortAbort last worker run
AuthenticationRequired

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.

Use this endpoint to abort an abortable run. Confirm the target before calling it.

Terminal window
curl -X POST "https://openapi.coreclaw.com/api/v2/worker-runs/last/abort" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"code": 0,
"message": "success",
"request_id": "req-123"
}
  • API v2 supports Bearer token, the legacy api-key header, and query token. Prefer Bearer token for new integrations.
  • This is an account-level latest-run endpoint and does not take a workerId path parameter; it operates on the latest run in the current account scope.
  • last means the latest run in the current scope. Use a concrete runId endpoint when the target must be explicit.
  • See Run Lifecycle & Status for status handling, polling, failure diagnosis, and cancellation behavior.
  • A successful abort request only means the service accepted the cancellation operation; then read detail for the same concrete runId. Do not wait for or invent an undocumented aborted state.
HTTP StatusApplication CodeMeaning
2000OK
40011000Bad Request
40112001Unauthorized
40411004Not Found
42913000Too Many Requests
50010000Internal Server Error