# List meetings

`GET https://api.coach-platform.com/api/public/meetings`

List meetings in a time window. Filter by traineeId.

- Resource: Meetings
- Authentication: API key in the `Authorization: Bearer cp_live_...` header
- HTML version: https://www.coach-platform.com/docs/api/reference/get-meetings
- OpenAPI spec: https://www.coach-platform.com/openapi.json

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `page` | integer | No | Page number (1-based, default 1) Minimum: `1`. |
| `limit` | integer | No | Number of items to return (default 25, max 500) Minimum: `1`. Maximum: `500`. |
| `from` | string | No | ISO date — earliest startDate |
| `to` | string | No | ISO date — latest startDate |
| `traineeId` | string | No |   |

## Responses

| Status | Description |
|---|---|
| `200` OK | Successful response |
| `400` Bad Request |  |
| `401` Unauthorized |  |
| `403` Forbidden |  |
| `429` Too Many Requests |  |
| `500` Internal Server Error |  |

### 200 OK

Content type: `application/json`

| Field | Type | Description |
|---|---|---|
| `data` | object[] |   |
| `data[].id` | string |   |
| `data[].coach` | string |   |
| `data[].title` | string |   |
| `data[].startDate` | string<date-time> |   |
| `data[].endDate` | string<date-time> |   |
| `data[].duration` | number |   |
| `data[].type` | string | Allowed values: `Online`, `In person`. |
| `data[].meetingType` | string | Allowed values: `Individual`, `Group`. |
| `data[].onlineLink` | string |   |
| `data[].address` | string |   |
| `data[].notes` | string |   |
| `data[].status` | string |   |
| `data[].capacity` | number |   |
| `data[].trainees` | object[] | Meeting attendees. email and phoneNumber are returned only when the key also has the trainees:read scope. |
| `data[].trainees[].id` | string |   |
| `data[].trainees[].name` | string |   |
| `data[].trainees[].email` | string |   |
| `data[].trainees[].phoneNumber` | string |   |
| `data[].createdAt` | string<date-time> |   |
| `pagination` | object |   |
| `pagination.page` | number |   |
| `pagination.limit` | number |   |
| `pagination.total` | number \| null | Total number of matching items. null when the underlying source cannot report an exact count for this page; use hasMore to keep paging. |
| `pagination.hasMore` | boolean |   |
| `pagination.truncated` | boolean | Present and true when the result set exceeded the in-memory scan cap and was truncated. Narrow your filters to page through all items. |

Example:

```json
{
  "data": [
    {
      "id": "<string>",
      "coach": "<string>",
      "title": "<string>",
      "startDate": "<date-time>",
      "endDate": "<date-time>",
      "duration": 123,
      "type": "Online",
      "meetingType": "Individual",
      "onlineLink": "<string>",
      "address": "<string>",
      "notes": "<string>",
      "status": "<string>",
      "capacity": 123,
      "trainees": [
        {
          "id": "<string>",
          "name": "<string>",
          "email": "<string>",
          "phoneNumber": "<string>"
        }
      ],
      "createdAt": "<date-time>"
    }
  ],
  "pagination": {
    "page": 123,
    "limit": 123,
    "total": 123,
    "hasMore": true,
    "truncated": true
  }
}
```

### Error responses 400, 401, 403, 429, 500

Content type: `application/json`

| Field | Type | Description |
|---|---|---|
| `error` | object |   |
| `error.code` | string |   |
| `error.message` | string |   |
| `error.fix` | string \| null |   |
| `error.details` | object \| null |   |
| `error.retryAfterMs` | number \| null |   |

Example:

```json
{
  "error": {
    "code": "<string>",
    "message": "<string>",
    "fix": "<string>",
    "details": {},
    "retryAfterMs": 123
  }
}
```

## Examples

### cURL

```bash
curl --request GET \
  --url 'https://api.coach-platform.com/api/public/meetings' \
  --header 'Authorization: Bearer cp_live_...'
```

### JavaScript (fetch)

```js
const response = await fetch('https://api.coach-platform.com/api/public/meetings', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer cp_live_...',
  },
});

const data = await response.json();
```

## Related endpoints

- [Schedule a meeting](https://www.coach-platform.com/docs/api/reference/post-meetings/index.md): `POST /api/public/meetings`. Schedule a meeting.
- [Get a meeting](https://www.coach-platform.com/docs/api/reference/get-meetings-meeting-id/index.md): `GET /api/public/meetings/{meetingId}`. Get a meeting by id.
- [Update a meeting](https://www.coach-platform.com/docs/api/reference/patch-meetings-meeting-id/index.md): `PATCH /api/public/meetings/{meetingId}`. Update a meeting (time, title, attendees, notes, status).
- [Delete a meeting](https://www.coach-platform.com/docs/api/reference/delete-meetings-meeting-id/index.md): `DELETE /api/public/meetings/{meetingId}`. Delete a meeting permanently.
- Previous: [Search the food database](https://www.coach-platform.com/docs/api/reference/get-food-items/index.md): `GET /api/public/food-items`. Search the food database the dashboard searches: the shared catalog plus the coach's own items.
- Next: [Schedule a meeting](https://www.coach-platform.com/docs/api/reference/post-meetings/index.md): `POST /api/public/meetings`. Schedule a meeting.
