Free slots
GET
/api/v1/ext/calendars/{id}/free-slots
The times that can be booked, grouped by date.
Auth: Bearer access_token
Scope: appointments.read
Worked out from the calendar's own availability and booking rules (notice, range, buffers, per-day cap), minus what is already booked. The same slots the booking page and the AI offer.
Each time is a slot start in UTC. Pass one to Book appointment as start_at.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | Calendar id. |
| start | query | string | no | ISO 8601. Default now. |
| end | query | string | no | ISO 8601. Default start + 7 days; at most 31 days after start. |
| timezone | query | string | no | IANA name for the date grouping. Default the calendar's timezone. |
Responses
| Status | When |
|---|---|
200 | OK |
400 | Bad range or timezone |
401 | Missing or invalid token |
403 | Missing scope |
404 | Calendar does not exist or is not in a workspace of the installer |
RequestResponses
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/calendars/{id}/free-slots" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"data": {
"calendar_id": 5,
"timezone": "Australia/Sydney",
"slot_duration_minutes": 30,
"slots": [
{
"date": "2026-11-03",
"times": [
"2026-11-02T22:00:00.000Z",
"2026-11-02T22:30:00.000Z"
]
},
{
"date": "2026-11-04",
"times": [
"2026-11-03T22:00:00.000Z"
]
}
]
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
Calendar id.
Query parameters
ISO 8601. Default now.
ISO 8601. Default start + 7 days; at most 31 days after start.
IANA name for the date grouping. Default the calendar's timezone.
Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/calendars/%7Bid%7D/free-slots
Previous
« List calendars
Next
List appointments »
