# Get an entry

`GET /v1/booking-wait-list/:id`

Returns a wait list record by its identifier — the record number and its note.

## Parameters

| Parameter | Type | Required | Description |
|----------|-----|:-----:|----------|
| `id` (path) | number | yes | Record identifier. List: [`GET /v1/booking-wait-list`](/docs/entities/booking-wait-list/list) |

## Examples

### curl — personal key

```bash
curl "https://vibecode.bitrix24.com/v1/booking-wait-list/27" \
  -H "X-Api-Key: YOUR_API_KEY"
```

### curl — OAuth application

```bash
curl "https://vibecode.bitrix24.com/v1/booking-wait-list/27" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"
```

### JavaScript — personal key

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/booking-wait-list/27', {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})

const { data } = await res.json()
console.log(data.id, data.note)
```

### JavaScript — OAuth application

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/booking-wait-list/27', {
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

const { data } = await res.json()
console.log(data.id, data.note)
```

## Response fields

| Field | Type | Description |
|------|-----|----------|
| `success` | boolean | `true` on success |
| `data.id` | number | Record identifier |
| `data.note` | string \| null | Note on the record. `null` — no note |

## Response example

```json
{
  "success": true,
  "data": {
    "id": 27,
    "note": "Call back after 15:00"
  }
}
```

## Error response example

404 — no record with this `id`:

```json
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "Booking record not found"
  }
}
```

## Errors

| HTTP | Code | Description |
|------|-----|----------|
| 404 | `ENTITY_NOT_FOUND` | No record with this `id`, including one that was deleted or moved to a booking. Message `Booking record not found` |
| 400 | `INVALID_PARAMS` | `id` is not a positive integer. Message `id must be a canonical positive safe integer` |
| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is not passed |
| 401 | `TOKEN_MISSING` | The key has no Bitrix24 tokens |
| 403 | `SCOPE_DENIED` | The key does not have the `booking` scope |
| 429 | `RATE_LIMITED` | Bitrix24 refused the request because its own rate limit was reached. Retry after the delay in the `Retry-After` header |
| 502 | `BITRIX_RESPONSE_INVALID` | Bitrix24 returned a record of an unexpected shape |

Full list of common API errors — [Errors](/docs/errors).

## Known specifics

**Record clients come from a separate request.** The record does not include its clients. They are returned by [`GET /v1/booking-wait-list/:id/clients`](/docs/entities/booking-wait-list/clients).

## See also

- [List wait list records](/docs/entities/booking-wait-list/list)
- [Update a wait list record](/docs/entities/booking-wait-list/update)
- [Wait list clients](/docs/entities/booking-wait-list/clients)
- [Book from the wait list](/docs/entities/booking-wait-list/booking)
- [Errors](/docs/errors)
