# Bookings API

> Read calls booked from a booking page. GET /api/v1/bookings, GET /api/v1/bookings/{id}.

2 operations. Each needs an API key with the permission shown; see [API keys and permissions](https://staffedly.com/docs/developers/api-keys).

| Operation | Permission |
| --- | --- |
| [`GET /api/v1/bookings`](#get-api-v1-bookings) | `meetings:read` |
| [`GET /api/v1/bookings/{id}`](#get-api-v1-bookings-id) | `meetings:read` |

## GET /api/v1/bookings

Calls booked from a booking page. The booker's manage link is never returned.

- **Permission:** `meetings:read`
- **Returns:** a page of records: `{ data, hasMore, nextCursor }`, status 200

**Query parameters** (all optional)

| Name | Description |
| --- | --- |
| `status` | booked or cancelled. |
| `from` | Earliest start time: YYYY-MM-DD or an ISO-8601 time. |
| `to` | Latest start time (not included): YYYY-MM-DD or an ISO-8601 time. |
| `bookingTypeId` | Only this booking page. |
| `limit` | Rows per page, 1 to 200. Default 50. |
| `cursor` | The nextCursor value from the previous page. |

**Fields in each record:** `id`, `bookingTypeId`, `meetingId`, `hostUserId`, `start`, `end`, `timezone`, `name`, `email`, `answers`, `status`, `applicationId`, `providerId`, `facilityId`, `interviewId`, `fromPrivateLink`, `rescheduledAt`, `cancelledAt`, `cancelledBy`, `createdAt`

```bash
curl "https://app.staffedly.com/api/v1/bookings?limit=50" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY"
```

## GET /api/v1/bookings/{id}

One booking.

- **Permission:** `meetings:read`
- **Returns:** one record: `{ data }`, status 200

**Path**

| Name | Description |
| --- | --- |
| `id` | The record's id. |

**Fields in each record:** `id`, `bookingTypeId`, `meetingId`, `hostUserId`, `start`, `end`, `timezone`, `name`, `email`, `answers`, `status`, `applicationId`, `providerId`, `facilityId`, `interviewId`, `fromPrivateLink`, `rescheduledAt`, `cancelledAt`, `cancelledBy`, `createdAt`

```bash
curl "https://app.staffedly.com/api/v1/bookings/<id>" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY"
```

