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

# List My Bookings

> Returns the authenticated customer's bookings.

# List My Bookings

Returns the list of active bookings for the authenticated customer across all resources.

## Authentication

Requires a valid customer bearer token.

## Query Parameters

<ParamField query="_shape" type="string">
  Comma-separated list of field paths to include in the response. When provided, only the
  specified fields are returned — useful for reducing payload size. Supports nested paths
  using dot notation. Example: `_shape=Records.ResourceName,Records.FromTime,Records.ToTime,TotalItems`.
</ParamField>

## Response

Returns a `MyBookings` object (`ApiListResult<Booking>`) — a paginated wrapper containing an array of booking records.

<ResponseField name="Records" type="Booking[]">
  Array of booking objects for the current page.
</ResponseField>

<ResponseField name="CurrentPage" type="number">
  Current page number (1-based).
</ResponseField>

<ResponseField name="TotalItems" type="number">
  Total number of bookings.
</ResponseField>

<ResponseField name="TotalPages" type="number">
  Total number of pages.
</ResponseField>

<ResponseField name="HasNextPage" type="boolean">
  Whether there are more pages after the current one.
</ResponseField>

<ResponseField name="HasPreviousPage" type="boolean">
  Whether there are pages before the current one.
</ResponseField>

## Examples

### Fetch my bookings

```http theme={null}
GET /api/public/bookings/my
Authorization: Bearer {token}
```

## TypeScript Integration

```typescript theme={null}
import endpoints from '@/api/endpoints'
import { MyBookings } from '@/types/endpoints/MyBookings'
import { useData } from '@/api/fetchData'

const { resource: data } = useData<MyBookings>(httpClient, endpoints.bookings.myBookings)
```
