# List calendars

> A workspace's calendars, as on the myCRMSIM Calendar page.

Source: https://docs.mycrmsim.com/docs/appointments/list-calendars

```http
GET https://backend.mysmsgateway.app/api/v1/ext/calendars
```

- Category: myCRMSIM Appointments / Calendars & Appointments
- Auth: Bearer access token
- Scope: `appointments.read`

Use a calendar `id` from here for Free slots and Book appointment.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | query | number | yes | The workspace. Example: `7` |

## Response fields (calendar)

| Field | Type | Description |
| --- | --- | --- |
| `id` | number | Calendar id — the calendar_id for booking. |
| `name` | string | Calendar name. |
| `description` | string, nullable | Calendar description. |
| `color` | string, nullable | Hex color on the Calendar page. |
| `timezone` | string, nullable | The calendar's own timezone (from its availability). |
| `slot_duration_minutes` | number, nullable | Default appointment length. |
| `location_type` | string, nullable | How the meeting happens (phone, in person, video …). |
| `is_public` | boolean | Whether it has a public booking page. |

## Response 200

OK

```json
{
  "success": true,
  "data": [
    {
      "id": 5,
      "name": "Sales calls",
      "description": "A 30-minute intro call.",
      "color": "#3b82f6",
      "timezone": "Australia/Sydney",
      "slot_duration_minutes": 30,
      "location_type": "phone",
      "location_text": null,
      "is_public": true
    }
  ]
}
```

## Response 400

workspace_id missing

```json
{
  "success": false,
  "message": "workspace_id is required"
}
```

## 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

workspace_id does not exist or is not owned by the installer (same response for both)

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