# ing.opn.booking.listBookings

> The signed-in host's bookings.

- Kind: query
- Authority: booking.opn.ing
- Lexicon: 1
- Published by [opn.ing](https://lexicon.garden/identity/did:plc:fd7yovynbzbli5i7m6tu76cl), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.listBookings)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.listBookings/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.listBookings/analytics)

## Query (`ing.opn.booking.listBookings`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
  - Constraints: maxLength: 128
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `status` (string)
  - Constraints: maxLength: 16, knownValues: upcoming | unconfirmed | past | cancelled

### Output (application/json)

- `bookings` (array, required)
  - `items` (ref)
    - Reference: `ing.opn.booking.defs#bookingView`
- `cursor` (string)
  - Constraints: maxLength: 128

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The signed-in host's bookings.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "bookings": {
              "items": {
                "ref": "ing.opn.booking.defs#bookingView",
                "type": "ref"
              },
              "type": "array"
            },
            "cursor": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "bookings"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "maxLength": 128,
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "status": {
            "knownValues": [
              "upcoming",
              "unconfirmed",
              "past",
              "cancelled"
            ],
            "maxLength": 16,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ing.opn.booking.listBookings",
  "lexicon": 1
}
```
