← Hotel Stays APIRetrieve 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_1234567890abcdef
string
required
Your organization UUIDExample:a8315ef3-dd50-43f8-b7ce-d839e68d51fa
Query Parameters
array[string]
Filter by statusAvailable values:active, pending, loading, completed, errorExample:status[]=active
date
Filter for stays that overlap this start date (inclusive)Format:YYYY-MM-DDExample:2024-01-01
date
Filter for stays that overlap this end date (inclusive)Format:YYYY-MM-DDExample:2024-12-31
string
Filter by name (partial match, case-insensitive)Example:offsite
array[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-2c963f66afa6
array[string]
Filter by how the record was createdAvailable values:manual, bulk_upload, apiExample:source[]=manual
array[uuid]
Filter by the UUID of the user who created the record. Pass
00000000-0000-0000-0000-000000000000 to filter for stays with no uploader.Example:uploaded_by[]=b9f1e2d3-0000-0000-0000-000000000001
datetime
Filter by minimum creation time (inclusive)Format:YYYY-MM-DDTHH:MM:SSZ
datetime
Filter by maximum creation time (inclusive)Format:YYYY-MM-DDTHH:MM:SSZ
array[string]
Sort order. Prefix with - for descending.Available values:check_in_date, check_out_date, name, created_at, updated_atExample:sort=-check_in_date
integer
default:"1"
Page number for pagination
integer
default:"50"
Items per page (max 100)
Response
array[object]
Array of hotel stay objects
Show Hotel Stay Object
string
Unique identifier (UUID)
string
Organization UUID this stay belongs to
string | null
Free-text description of the stay
date
Check-in date
date
Check-out date
string
ISO-3166 alpha-2 country code
string | null
Plain-text hotel address (used for geocoding)
string | null
Hotel name
integer
Number of rooms booked
string
active, pending, loading, completed, or error
string | null
How the record was created (manual, bulk_upload, etc.)
number | null
Calculated CO2e in kg (sourced from total_impacts)
string | null
UUID of the source bulk-upload file, if any
string | null
Name of the source file, if any
datetime
Record creation timestamp
datetime | null
Last update timestamp
object | null
User who created the record
Show User Object
string
UUID
string | null
First name
string | null
Last name
string | null
Profile image URL
object | null
Geocoded location (populated when address is resolved)
Show Location Geocode Object
string
ISO country code
string
Geocoding provider place ID
string
Full formatted address
number
Latitude coordinate
number
Longitude coordinate
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
boolean
Capability flag for “select all matching”. Always true for hotel stays — pass this list’s filter_hash to POST /v1/hotel-stays/bulk-delete-by-filters to delete everything matching the current filters.