Skip to content

Abort Worker Run

Method: POST

Endpoint: /api/v2/worker-runs/{runId}/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/{runId}/abortAbort worker run
AuthenticationRequired

Stored only in this browser tab. Sent only to https://openapi.coreclaw.com.

Parameters
path · stringRequired

Run slug returned as `data.run_slug` from start or rerun responses.

Request BodyNot applicable
No JSON request body. Fill the path or query parameters above.

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

  • runId is the run slug. Use data.run_slug from start or rerun responses as the runId.
ParameterRequiredTypeDescription
runIdYesstringRun slug returned as data.run_slug from start or rerun responses.
Terminal window
curl -X POST "https://openapi.coreclaw.com/api/v2/worker-runs/YOUR_RUN_ID/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.
HTTP StatusApplication CodeMeaning
2000OK
40011000Bad Request
40112001Unauthorized
40411004Not Found
42211000Unprocessable Entity
42913000Too Many Requests
50010000Internal Server Error