New API: This endpoint is part of the new API architecture with improved design and maintainability. Hotel stays are stored separately from business travel trips and have their own dedicated endpoints at
/v1/hotel-stays.Key Features
- Accommodation Records Management: Create and manage hotel stay records
- Room-Night Emissions: Automatic CO2e calculation with the room-night emission factor of each country, or your own
- Pagination Support: Efficiently retrieve large lists of hotel stays with filtering
Authentication
All endpoints require authentication via thex-api-key header. See Authentication for details.
Headers
All requests must include:string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faAvailable Endpoints
List Hotel Stays
Retrieve all hotel stays with filtering and pagination
Get Hotel Stay
Retrieve a specific hotel stay by ID
Get Totals
Get aggregated stay count, room-nights, and total CO2e
Calculation Steps
Step-by-step CO2e breakdown for a specific stay
Delete Hotel Stay
Remove a hotel stay record
Bulk Delete
Remove multiple hotel stay records at once
Create Hotel Stays (v2)
Create up to 5,000 hotel stays; their emissions are calculated as an ingest job
Delete Hotel Stays (v2)
Delete up to 5,000 hotel stays with their emissions, as an ingest job
Hotel Stay Attributes
Core Information
- name (
string, optional): Free-text description of the stay - check_in_date (
date, required): Date the guest checked in - check_out_date (
date, required): Date the guest checked out - country (
string, required): ISO-3166 alpha-2 country code (e.g.ES,GB,US) - address (
string, optional): The hotel’s address or city, to place it on a map - hotel_name (
string, optional): Name of the hotel - rooms (
integer, required): Number of rooms booked (1–10000)
Status
- status (
string, read-only):active,pending, orerror - source (
string, read-only): How the record was created (manual,bulk_upload, etc.) - co2e (
number, read-only): Calculated CO2 equivalent emissions in kg — sourced fromtotal_impacts, not stored on the record
Emission Methodology
CO2e is calculated as:- nights =
check_out_date − check_in_datein days - EF = the hotel room-night emission factor of the stay’s country (DEFRA, or Greenview where DEFRA has none), or of its custom emission factor record
total_impacts row is created per month the stay’s nights fall in, so a stay that spans a reporting period boundary is split between the periods.
Response Format
Hotel Stay Object
Pagination Response
Error Handling
Common HTTP Status Codes
Error Response Format
GHG Protocol Context
Hotel stay emissions fall under Scope 3, Category 6 of the GHG Protocol alongside business travel trips:- Scope 3: Indirect emissions from value chain activities
- Category 6: Business Travel — emissions from employee travel and accommodation for work purposes
Related Documentation
Business Travels API
Manage business travel trips (Scope 3 Category 6)
Employees API
Manage employee commuting emissions (Scope 3 Category 7)
MCP Tools
Query hotel stay data from AI assistants via MCP