Get Totals
Get Totals
Get aggregated totals for business travels: record count, total distance, and total CO2e
GET
Get Totals
Get Totals
Returns aggregated statistics for business travels in your organization: total CO2e emitted, total distance traveled, and record count. Supports the same filters as the list endpoint.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
Filter by transport typeAvailable values:
car, metro, train, trolleybus, bus, motorbike, aircraft, ferryExample: transport_type[]=train&transport_type[]=aircraftFilter by statusAvailable values:
active, pending, loading, completed, errorExample: status[]=activeFilter by minimum travel date (inclusive)Format:
YYYY-MM-DDExample: 2024-01-01Filter by maximum travel date (inclusive)Format:
YYYY-MM-DDExample: 2024-12-31Search by name (case-insensitive substring match)Example:
offsiteFilter by exact name values (multi-select, OR logic)Example:
name[]=Team offsite&name[]=Client visitFilter by source file UUID. Pass
00000000-0000-0000-0000-000000000000 to filter for records with no associated file.Example: file_id[]=3fa85f64-5717-4562-b3fc-2c963f66afa6Filter records created on or after this timestamp (inclusive)Format:
YYYY-MM-DDTHH:MM:SSZFilter records created on or before this timestamp (inclusive)Format:
YYYY-MM-DDTHH:MM:SSZFilter by CO2e calculation statusAvailable values:
calculated, not_calculatedResponse
Total CO2e in kg across all matching business travels
Total distance in kilometers
Number of business travel records matching the filters
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization404 Not Found
Cause: Organization not foundUse Cases
Compare Emissions by Transport Type
Related Endpoints
List Business Travels
Browse individual travel records
Calculation Steps
See the CO2e breakdown for a specific trip

