Skip to main content
GET
/
api
/
capacity
/
calendar
Get Calendar
curl --request GET \
  --url https://app.opencomputer.dev/api/capacity/calendar \
  --header 'X-API-Key: <api-key>'
{
  "from":      "2026-04-29T02:00:00Z",
  "to":        "2026-04-29T04:00:00Z",
  "resource":  "memory_gb",
  "intervals": [
    {
      "startsAt": "2026-04-29T02:00:00Z",
      "endsAt":   "2026-04-29T02:15:00Z",
      "reservationLimitGb": 300,
      "reservedGb": 80,
      "reservableGb": 220
    }
  ]
}
Return a planning snapshot of 15-minute UTC intervals in the requested window. One row per interval with current reservedGb, reservableGb, and the per-org reservationLimitGb. See Reading the calendar for field semantics.
from
string
required
Window start. RFC 3339, aligned to 15 minutes, UTC.
to
string
required
Window end. RFC 3339, aligned to 15 minutes, UTC.
{
  "from":      "2026-04-29T02:00:00Z",
  "to":        "2026-04-29T04:00:00Z",
  "resource":  "memory_gb",
  "intervals": [
    {
      "startsAt": "2026-04-29T02:00:00Z",
      "endsAt":   "2026-04-29T02:15:00Z",
      "reservationLimitGb": 300,
      "reservedGb": 80,
      "reservableGb": 220
    }
  ]
}