# Free slots

> The times that can be booked, grouped by date.

Source: https://docs.mycrmsim.com/docs/appointments/get-free-slots

```http
GET https://backend.mysmsgateway.app/api/v1/ext/calendars/{id}/free-slots
```

- Category: myCRMSIM Appointments / Calendars & Appointments
- 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. Example: `5` |
| `start` | query | string | no | ISO 8601. Default now. Example: `2026-11-03T00:00:00Z` |
| `end` | query | string | no | ISO 8601. Default start + 7 days; at most 31 days after start. Example: `2026-11-10T00:00:00Z` |
| `timezone` | query | string | no | IANA name for the date grouping. Default the calendar's timezone. Example: `Australia/Sydney` |

## Response 200

OK

```json
{
  "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"
        ]
      }
    ]
  }
}
```

## Response 400

Bad range or timezone

```json
{
  "success": false,
  "message": "The range can be at most 31 days"
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): appointments.read. This integration was granted: …"
}
```

## Response 404

Calendar does not exist or is not in a workspace of the installer

```json
{
  "success": false,
  "message": "Calendar not found or not accessible to this token"
}
```
