List Hotel Stays
List Hotel Stays
Retrieve all hotel stays with filtering and pagination support
GET
List Hotel Stays
List Hotel Stays
Retrieve a paginated list of hotel stay records for your organization, with support for filtering by status, date range, name, and file.Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
array[string]
Filter by statusAvailable values:
active, pending, loading, completed, errorExample: status[]=activedate
Filter for stays that overlap this start date (inclusive)Format:
YYYY-MM-DDExample: 2024-01-01date
Filter for stays that overlap this end date (inclusive)Format:
YYYY-MM-DDExample: 2024-12-31string
Filter by name (partial match, case-insensitive)Example:
offsitearray[uuid]
Filter by source file UUID. Pass
00000000-0000-0000-0000-000000000000 to
filter for stays with no associated file.Example: file_id[]=3fa85f64-5717-4562-b3fc-2c963f66afa6datetime
Filter by minimum creation time (inclusive)Format:
YYYY-MM-DDTHH:MM:SSZdatetime
Filter by maximum creation time (inclusive)Format:
YYYY-MM-DDTHH:MM:SSZarray[string]
Sort order. Prefix with
- for descending.Available values: check_in_date, check_out_date, name, created_at, updated_atExample: sort=-check_in_dateinteger
default:"1"
Page number for pagination
integer
default:"50"
Items per page (max 100)
Response
array[object]
Array of hotel stay objects
integer
Total number of records matching the filter
integer
Current page number
integer
Items per page
string
Hash of the current filter state — use to detect if filters have changed
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Unprocessable Entity
Cause: Invalid query parameters (e.g. malformed date)Related Endpoints
Get Hotel Stay
Get a specific stay by ID
Get Totals
Get aggregated stats across all stays