Skip to main content
GET
/
api
/
public
/
bookings
/
my
List My Bookings
curl --request GET \
  --url https://spaces.nexudus.com/api/public/bookings/my \
  --header 'Authorization: Basic <encoded-value>'
{
  "Records": [
    {}
  ],
  "CurrentPage": 123,
  "TotalItems": 123,
  "TotalPages": 123,
  "HasNextPage": true,
  "HasPreviousPage": true
}

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 list of active bookings for the authenticated customer across all resources.

Authentication

Requires a valid customer bearer token.

Query Parameters

_shape
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.

Response

Returns a MyBookings object (ApiListResult<Booking>) — a paginated wrapper containing an array of booking records.
Records
Booking[]
Array of booking objects for the current page.
CurrentPage
number
Current page number (1-based).
TotalItems
number
Total number of bookings.
TotalPages
number
Total number of pages.
HasNextPage
boolean
Whether there are more pages after the current one.
HasPreviousPage
boolean
Whether there are pages before the current one.

Examples

Fetch my bookings

GET /api/public/bookings/my
Authorization: Bearer {token}

TypeScript Integration

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)