Release a credit hold
DELETE https://weights.fyi/run/v1/reservations?reservation_id=<id>
Authorization: Bearer <token> scope: submit- Available since
- Not available yet: built on 2026-11-14, live with the deploy that carries it.
- Answer time
- synchronous: the hold is released before the answer is sent.
Releases a credit hold taken with POST /v1/reservations. Its amount returns to what your account can reserve, and to the room of the compute plan it counted against.
A hold is never released for you, and a released hold is not reopened: take a new one under a new id. Releasing a hold that was already released answers it again, unchanged, so the call is safe to repeat.
Request
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer and a token that holds submit. |
reservation_id | query | yes | The hold to release. |
The call takes no body.
Return value
200 OK with the hold, its state now released.
| Field | Meaning |
|---|---|
reservation_id | The hold's id. |
state | released. |
amount_usd_micros | The amount that was held. |
released_at, release_reason | When it was released, and released_by_caller. |
plan | The plan it counted against, with its budget figures after the release; null when it counted against credit alone. |
Errors
| Status | Code | When it happens | What to do |
|---|---|---|---|
400 | invalid_reservation | reservation_id is missing or not an id. | Send the id the hold was taken with. |
401 | unauthorized, invalid_token, token_revoked, token_expired | No token, or one that does not work (any more). | Use a valid token. |
403 | scope_required, account_suspended | The token lacks submit, or the account is suspended. | Use a token with submit. |
404 | reservation_not_found | Your account took no hold with this id. | Check the id. |
429 | rate_limited | The token's request rate. | Wait Retry-After. |
503 | reservation_authority_unavailable | This deployment keeps no holds. | Nothing to release. |
Examples
curl -s -X DELETE "https://weights.fyi/run/v1/reservations?reservation_id=wave-44-triage" -H "Authorization: Bearer $WEIGHTS_API_KEY"{
"object": "reservation",
"dry_run": false,
"reservation_id": "wave-44-triage",
"state": "released",
"amount_usd_micros": 2500000,
"created_at": "2026-11-14T21:40:12.118Z",
"released_at": "2026-11-14T22:05:40.512Z",
"release_reason": "released_by_caller",
"plan": null
}History
- 2026-11-14: built.