# List appointments

> Appointments in a date window, filtered and paginated.

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

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

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

An appointment is included when it overlaps the window. Sorted by start time.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | query | number | yes | The workspace. Example: `7` |
| `from` | query | string | yes | Window start, ISO 8601. Example: `2026-11-01T00:00:00Z` |
| `to` | query | string | yes | Window end, ISO 8601. At most 93 days after from. Example: `2026-11-30T23:59:59Z` |
| `calendar_id` | query | string | no | One calendar id, or several comma-separated. |
| `contact_id` | query | number | no | Only this contact's appointments. |
| `assignee_id` | query | number | no | Only this team member. |
| `status` | query | enum | no | Default: everything except cancelled. "all" includes cancelled. Any other value is a 400. One of: `confirmed`, `cancelled`, `no_show`, `completed`, `all`. |
| `page` | query | number | no | Default 1. Example: `1` |
| `limit` | query | number | no | 1–100, default 50. Anything else is a 400. Example: `50` |

## Response fields (appointment)

| Field | Type | Description |
| --- | --- | --- |
| `id` | number | Appointment id. |
| `workspace_id` | number | The workspace it belongs to. |
| `calendar_id` | number | The calendar it is booked on. |
| `calendar` | object | id, name and color of the calendar. |
| `contact` | object | The contact: id, first_name, last_name, email, phone_number, company_name. |
| `assignee` | object, nullable | The team member it is assigned to: id and name. |
| `title` | string | Appointment title. |
| `description` | string, nullable | Notes for the appointment. |
| `start_at` | string (ISO 8601) | Start time, UTC. |
| `end_at` | string (ISO 8601) | End time, UTC. |
| `timezone` | string | IANA timezone it was booked in. |
| `status` | string | "confirmed", "cancelled", "no_show" or "completed". |
| `source` | string | Where it was booked: api (this API), dashboard, booking_page, agent, mcp … |
| `location_text` | string, nullable | Address or location note. |
| `meeting_link` | string, nullable | Video meeting link. |
| `reschedule_count` | number | How many times it has been moved. |
| `cancelled_at` | string (ISO 8601), nullable | When it was cancelled. |
| `cancel_reason` | string, nullable | Reason given on cancel. |

## Response 200

OK

```json
{
  "success": true,
  "data": [
    {
      "id": 700,
      "workspace_id": 7,
      "calendar_id": 5,
      "calendar": {
        "id": 5,
        "name": "Sales calls",
        "color": "#3b82f6"
      },
      "contact_id": 1234,
      "contact": {
        "id": 1234,
        "first_name": "Ann",
        "last_name": "Lee",
        "email": "ann@example.com",
        "phone_number": "+61412345678",
        "company_name": "Lee Studio"
      },
      "assignee_id": null,
      "assignee": null,
      "title": "Intro call with Ann Lee",
      "description": null,
      "start_at": "2026-11-03T00:00:00.000Z",
      "end_at": "2026-11-03T00:30:00.000Z",
      "timezone": "Australia/Sydney",
      "status": "confirmed",
      "source": "dashboard",
      "location_text": null,
      "meeting_link": "https://meet.example.com/abc",
      "reschedule_count": 0,
      "cancelled_at": null,
      "cancel_reason": null,
      "created_at": "2026-10-27T09:00:00.000Z",
      "updated_at": "2026-10-27T09:00:00.000Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 50,
    "max_limit": 100,
    "total": 1,
    "total_pages": 1
  }
}
```

## Response 400

Missing or bad window

```json
{
  "success": false,
  "message": "from and to are required (ISO dates, to after from)"
}
```

## 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"
}
```
