Documentation
Credit and usage
View .mdOpenAPI

List your credit holds

GEThttps://weights.fyi/run/v1/reservationsscope: read
text
GET https://weights.fyi/run/v1/reservations
GET https://weights.fyi/run/v1/reservations?reservation_id=<id>
Authorization: Bearer <token>                    scope: read
Available since
Not available yet: built on 2026-11-14, live with the deploy that carries it.
Answer time
synchronous: the answer is read from your account's records at once.

Lists the credit holds your account took with POST /v1/reservations and has not released, oldest first. Each is credit set aside: it is no longer part of what your other work can reserve.

With reservation_id the call answers that one hold, whether it is still held or was released, with the compute plan it counts against. Use it to check a hold before releasing it, or to see that a release took effect.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token that holds read.
reservation_idquerynoAnswer this one hold instead of the list.

The call takes no body.

Return value

200 OK with object: "list" and the holds under data; or, with reservation_id, the one hold.

FieldMeaning
reservation_idThe hold's id.
stateheld, or released.
amount_usd_microsThe amount held.
created_at, released_at, release_reasonWhen it was taken, and when and why it was released.
planThe compute plan whose budget counts the hold, with its budget figures; null when it counts against credit alone.

Errors

StatusCodeWhen it happensWhat to do
400invalid_reservationreservation_id is 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 read, or the account is suspended.Use a token with read.
404reservation_not_foundYour account took no hold with this id.Check the id.

Examples

sh
curl -s https://weights.fyi/run/v1/reservations -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "object": "list",
  "data": [
    {"object": "reservation", "dry_run": false, "reservation_id": "wave-44-triage", "state": "held",
     "amount_usd_micros": 2500000, "created_at": "2026-11-14T21:40:12.118Z", "released_at": null,
     "release_reason": null, "plan": null}
  ]
}

History

  • 2026-11-14: built.

See also

POST /v1/reservations, DELETE /v1/reservations.