Documentation
Credit and usage
View .mdOpenAPI

Release a credit hold

DELETEhttps://weights.fyi/run/v1/reservationsscope: submit
text
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

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token that holds submit.
reservation_idqueryyesThe hold to release.

The call takes no body.

Return value

200 OK with the hold, its state now released.

FieldMeaning
reservation_idThe hold's id.
statereleased.
amount_usd_microsThe amount that was held.
released_at, release_reasonWhen it was released, and released_by_caller.
planThe plan it counted against, with its budget figures after the release; null when it counted against credit alone.

Errors

StatusCodeWhen it happensWhat to do
400invalid_reservationreservation_id is missing or not an id.Send the id the hold was taken with.
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work (any more).Use a valid token.
403scope_required, account_suspendedThe token lacks submit, or the account is suspended.Use a token with submit.
404reservation_not_foundYour account took no hold with this id.Check the id.
429rate_limitedThe token's request rate.Wait Retry-After.
503reservation_authority_unavailableThis deployment keeps no holds.Nothing to release.

Examples

sh
curl -s -X DELETE "https://weights.fyi/run/v1/reservations?reservation_id=wave-44-triage" -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "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.

See also

POST /v1/reservations, GET /v1/reservations.