Capacity holds, expiry, confirmation, cancellation and explicit time zones. Isolated educational simulation; no real payment or reservation is made.
Base URL: https://funapi.dev/api/reservations/v1 · 5 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.
State transitions and recovery
GET /reservations/v1/slots — List UTC slots with IANA display time zones · Responds with 200 400 401 404 409 422 Link to this endpointPOST /reservations/v1/holds — Reserve capacity temporarily (requires Bearer auth) · Responds with 201 400 401 404 409 422 Link to this endpointGET /reservations/v1/holds/{id} — Read a hold and observe expiry · Responds with 200 410 400 401 404 409 422 Link to this endpointPOST /reservations/v1/holds/{id}/confirm — Confirm a live hold (requires Bearer auth) · Responds with 200 410 400 401 404 409 422 Link to this endpointDELETE /reservations/v1/holds/{id} — Release a hold or cancel a confirmed reservation (requires Bearer auth) · Responds with 204 400 401 404 409 422 Link to this endpointA capacity reservation lab with temporary holds, confirmation, cancellation and expiry. Slots store an unambiguous UTC instant alongside an IANA display time zone, allowing clients to test daylight-saving presentation without accepting ambiguous or nonexistent local-time input.
GET https://funapi.dev/api/reservations/v1/slots — List UTC slots with IANA display time zones. No token, no signup:
curl -i https://funapi.dev/api/reservations/v1/slots
Response: 200 OK
{
"data": [
{
"id": 1,
"startsAt": "2027-03-28T01:30:00Z",
"timeZone": "Europe/London",
"capacity": 2
}
]
}
Last updated