---
title: "Bookable slots with remaining capacity between two local dates (default: the next 14 days)"
method: GET
path: "/offerings/{id}/availability"
tags: ["availability"]
---

# Bookable slots with remaining capacity between two local dates (default: the next 14 days)

`GET /offerings/{id}/availability`

## Request

- Base URL: `https://daybag.io/api/v1`
- URL: `https://daybag.io/api/v1/offerings/{id}/availability`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Query parameters

- `from` string, date: Local calendar date (YYYY-MM-DD) in the org's time zone
- `to` string, date: Local calendar date (YYYY-MM-DD) in the org's time zone

## Response `200`

Success

- object
  - `timezone` string, required: The org's time zone; from and to are local dates in it
  - `data` object[], required
    - `starts_at` string, required: ISO 8601 timestamp (UTC)
    - `ends_at` string, required: ISO 8601 timestamp (UTC)
    - `capacity` integer, required
    - `remaining` integer, required: What's left to book: seats, parallel slots or items; a course's, the seats left in its fullest time
    - `session_id` string: Classes only: pass it to bookings_create
    - `series_id` string: A course only: the entry it books whole; pass it to bookings_create as series_id
    - `sessions` integer: A course only: how many times it has to come, from starts_at to the last's end (ends_at)
    - `repeat` string: A course only: how its times repeat, as its entry's repeat

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/daybag/apis/daybooked-io-api.md) · [All operations](https://skmtc.dev/daybag/apis/daybooked-io-api/llms.txt) · [OpenAPI document](https://skmtc.dev/daybag/apis/daybooked-io-api/revisions/1f576dead370?raw)
