Get Route Counts
Get Route Counts
Get aggregate counts of transport routes grouped by calculation status
GET
Get Route Counts
Get Route Counts
Return a summary of how many transport routes are in each calculation state —pending, active, or error — for the authenticated organization. Optionally filter by transport direction or the file that uploaded the routes.
This endpoint is useful for building status badges, progress indicators, and health dashboards without fetching the full route list.
Request
Authentication
Supports both authentication methods:Your API key (use this or
Authorization)Example: sk_live_1234567890abcdefBearer JWT token (use this or
x-api-key)Example: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...Headers
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
Filter counts to a specific direction. One of:
downstream, upstreamExample: downstreamFilter counts to routes that were created from a specific bulk-upload file (UUID)Example:
f3a2b1c0-dead-beef-0000-123456789abcResponse
Number of routes currently awaiting emissions calculation. Default:
0Number of routes with successfully completed emissions calculation. Default:
0Number of routes where emissions calculation failed. Default:
0Example
Successful Response
All Routes Calculated
Common Errors
401 Unauthorized
Cause: Missing or invalid API key / JWT token403 Forbidden
Cause: The authenticated user is not a member of the organization422 Unprocessable Entity
Cause: Invalid value for a query parameter, e.g. an unrecognizedtransport_direction
Related Endpoints
List Transport Routes
Retrieve all transport routes with filtering and pagination
Get Transport Route
Get a specific transport route by ID with all sections and emissions
Create Transport Route
Create a new transport route with sections
Update Transport Route
Modify a transport route and replace its sections
Delete Transport Route
Remove a transport route permanently
Transport Overview
Full data model and distance calculation reference

