> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voyantcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Bookings

> Retrieve a paginated list of bookings in your workspace.

## Method

`GET` `/v1/bookings`

## Query Parameters

<ParamField query="limit" type="integer">Items per page (default 20, max 100)</ParamField>
<ParamField query="offset" type="integer">Number of items to skip (default 0)</ParamField>
<ParamField query="status" type="string">Filter by status (pending, confirmed, cancelled, completed)</ParamField>
<ParamField query="q" type="string">Search text (code, customer name/email)</ParamField>
<ParamField query="locale" type="string">Response locale (e.g. en, ro)</ParamField>
<ParamField query="sort" type="string">Sort field (e.g. createdAt, updatedAt)</ParamField>
<ParamField query="dir" type="string">Sort direction: asc or desc</ParamField>

## Headers

<ParamField header="Authorization" type="string" required>Bearer token (e.g. <code>Authorization: Bearer YOUR\_API\_KEY</code>)</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.voyantcloud.com/v1/bookings?limit=20&offset=0&q=PAR-2025" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const res = await fetch("https://api.voyantcloud.com/v1/bookings?limit=20&q=PAR-2025", {
    headers: { Authorization: `Bearer ${process.env.VOYANT_API_KEY}` },
  })
  const data = await res.json()
  ```

  ```python Python theme={null}
  import os, requests
  resp = requests.get(
    "https://api.voyantcloud.com/v1/bookings",
    params={"limit": 20, "offset": 0, "q": "PAR-2025"},
    headers={"Authorization": f"Bearer {os.environ['VOYANT_API_KEY']}"},
  )
  data = resp.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": [
      {
        "id": "bkg_456def",
        "code": "BKG-2025-0001",
        "status": "confirmed"
      }
    ],
    "meta": {
      "total": 1,
      "limit": 20,
      "offset": 0,
      "hasMore": false
    }
  }
  ```
</ResponseExample>
