Same as Get venue availability,
but restricted to a single bookable variant (a
duration × price option of a treatment). Slots are computed with that variant’s
duration, and only therapists qualified for its treatment are considered, so the
result is a subset of the whole-venue availability. Requires the
availability:read scope.
A variant belongs to exactly one treatment, so the variant_id is all you
need — no treatment_id is required. Variant ids are returned (with their
duration and is_default flag) by
GET /v1/venues/{venue_id}/treatments.
Path parameters
string
required
The venue id or slug.
string
required
The variant id. Its parent treatment must belong to the venue.
Query parameters
string (ISO date)
A single day, YYYY-MM-DD. Mutually exclusive with from/to.
string (ISO date)
Start of the range, inclusive. Requires to.
string (ISO date)
End of the range, inclusive. Max from + 62 days.
You must provide eitherdateor both from and to.
Response
Same shape as Get venue availability
— { data: { date, slots } } in single-day mode, { data: { from, to, days } }
in range mode — plus the echoed identifiers venue_id, treatment_id (the
variant’s parent treatment) and variant_id.
Errors
HTTP
Body
Meaning
400
{ "error": "Provide \date` or `from`/`to`” }`
Missing or conflicting period params
403
{ "error": "Forbidden" }
Your key is scoped to another venue/org
404
{ "error": "Venue not found" }
Unknown venue
404
{ "error": "Variant not found" }
Unknown variant, or its treatment is not in the venue