Skip to content

Release Run Queue Items

Method: POST

Endpoint: /api/v2/run-queue/items/release

Authentication: Supports Authorization: Bearer <YOUR_API_KEY>, api-key: <YOUR_API_KEY>, and ?token=<YOUR_API_KEY>. Prefer Bearer token.

POST/api/v2/run-queue/items/releaseRelease run queue items
AuthenticationRequired

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

Request BodyRequiredapplication/json
FieldTypeRequiredDescription
queue_refsarrayRequiredQueue item IDs.
reasonstringOptionalRelease reason.
Request body (JSON)

Use this endpoint to remove one or more runs from the Run Queue so they never execute — for example, when you no longer need a waiting run. This is the batch version: pass multiple queue_ref values in one call. To release just one item, use Release One Run Queue Item instead.

First call List Run Queue Items to get the queue_ref of the items you want to release.

Send the request body with Content-Type: application/json.

FieldRequiredTypeDescription
queue_refsYesarray<string>The queue item IDs to release. Copy these from the queue_ref values returned by List Run Queue Items.
reasonNostringOptional reason for releasing, recorded for your later reference.
{
"queue_refs": ["123456", "123457"],
"reason": "no longer needed"
}
Terminal window
curl -X POST "https://openapi.coreclaw.com/api/v2/run-queue/items/release" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{"queue_refs":["123456","123457"],"reason":"no longer needed"}'
{
"code": 0,
"data": {
"results": [
{ "queue_ref": "123456", "success": true },
{ "queue_ref": "123457", "success": false, "error": "item is not in waiting state" }
]
},
"message": "success",
"request_id": "req-123"
}
FieldTypeDescription
data.results[]arrayPer-item release outcomes, one entry per queue_ref you submitted.
data.results[].queue_refstringThe queue item ID this result refers to.
data.results[].successbooleanWhether the item was released. false when the item was no longer in a releasable state (for example it already ran or was activated).
data.results[].errorstringOptional. Present only when success is false, with a short reason why the item could not be released.
  • API v2 supports Bearer token, the legacy api-key header, and query token. Prefer Bearer token for new integrations.
  • Releasing is permanent: the item is removed from the queue and will not run. If you want the run to execute instead, use Activate Run Queue Items.
  • See Run Lifecycle & Status for status handling and cancellation behavior.
HTTP StatusApplication CodeMeaning
2000OK
40011000Bad Request
40112001Unauthorized
40411004Not Found
42211000Unprocessable Entity
42913000Too Many Requests
50010000Internal Server Error