Skip to content

Release One Run Queue Item

Method: POST

Endpoint: /api/v2/run-queue/items/{queueId}/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/{queueId}/releaseRelease one run queue item
AuthenticationRequired

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

Parameters
path · stringRequired

Queue item ID.

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

Use this endpoint to remove a single run from the Run Queue so it never executes. It does the same thing as the batch Release Run Queue Items endpoint, but takes the queue_ref directly in the URL — handy when you only have one item to release.

ParameterRequiredTypeDescription
queueIdYesstringThe queue item ID. Copy this from the queue_ref returned by List Run Queue Items.

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

FieldRequiredTypeDescription
reasonNostringOptional reason for releasing, recorded for your later reference.
{
"reason": "no longer needed"
}
Terminal window
curl -X POST "https://openapi.coreclaw.com/api/v2/run-queue/items/123456/release" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{"reason":"no longer needed"}'
{
"code": 0,
"data": {
"results": [
{ "queue_ref": "123456", "success": true }
]
},
"message": "success",
"request_id": "req-123"
}
FieldTypeDescription
data.results[]arrayPer-item release outcome. The single item result mirrors the batch Release Run Queue Items response.
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.
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. To release several items at once, use the batch Release Run Queue Items endpoint.
  • 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