Skip to main content
GET
List Transport Routes

List Transport Routes

Retrieve all transport routes for your organization. Supports full-text search, date range filters, status filters, and sorting. The response includes a filter_hash you can pass to the bulk-delete-by-filters endpoint to delete all matching records at once.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Query Parameters

Free-text search across route names, suppliers, and addresses. Minimum 1 character, maximum 255 characters.
date
Filter routes with transport_date on or after this date (YYYY-MM-DD)
date
Filter routes with transport_date on or before this date (YYYY-MM-DD)
array of string
Filter by route status. Allowed values: pending, active, error. Pass multiple values to include more than one status.
string
Filter by direction: downstream (outbound — goods sent to customers) or upstream (inbound — goods received from suppliers)
array of UUID
Filter by the uploaded file(s) that created these routes. Pass multiple UUIDs to include routes from several files.
datetime
Filter routes created on or after this timestamp (ISO 8601)
datetime
Filter routes created on or before this timestamp (ISO 8601)
string
Filter by emission calculation state: calculated (co2e is present) or not_calculated (co2e is null)
array of string
Filter by supplier name (exact match). Pass multiple values to include routes from several suppliers.
array of string
Sort fields. Prefix with - for descending order. Allowed fields: name, start_date, quantity_transported, created_at.Example: -created_at (newest first), start_date (oldest first)
integer
default:"1"
Page number (1-based)
integer
default:"50"
Number of results per page

Response

array
List of transport routes on this page. See Route Fields below.
integer
Total number of routes matching the current filters (across all pages)
integer
Current page number
integer
Number of items per page
string
Opaque hash representing the current filter state. Pass this value to the bulk-delete-by-filters endpoint to delete all routes matching the current query without specifying IDs individually.

Route Fields

string
Unique identifier (UUID)
string | null
Optional route name
date | null
Date of transport (YYYY-MM-DD). null if not set.
number
Amount transported (max 10 digits, 3 decimal places)
string | null
Optional supplier name
string
downstream (outbound — goods sent to customers) or upstream (inbound — goods received from suppliers)
string | null
Recurrence: once, weekly, monthly
object
Measurement unit for the quantity transported
number | null
Total CO2-equivalent emissions in kg across all sections. null if no impacts have been calculated yet.
array
Route-level emissions summary: [{"value": 245.67, "gas": "co2e", "unit_name": "kgCO2e"}]
string
Route status: pending (awaiting calculation), active (calculated), error (calculation failed)
string | null
ID of the uploaded file if this route was created via bulk upload
string | null
Name of the uploaded file if this route was created via bulk upload
array
List of transport sections (legs) for this route. See Section Fields below.
object | null
User who uploaded this route
datetime
ISO 8601 creation timestamp
datetime
ISO 8601 last-update timestamp

Section Fields

string
Section UUID
integer
Sequence number within the route (1-based)
string
road, air, maritime, rail, or do_not_know
string | null
Sub-type for road transport: car, truck, motorbike, bicycle, electric_kick_scooter
boolean
Whether the vehicle is electric
boolean
Whether the cargo is refrigerated
string | null
Additional detail used for emission factor selection (e.g. distance band or weight class)
string
Origin location address
object | null
Geocoded origin location
string
Destination location address
object | null
Geocoded destination location
number | null
Calculated or user-provided distance in kilometers
number | null
Distance override provided by the user (max 7 digits, 2 decimal places). Present when distance_manual is true.
boolean
true when the distance was provided manually via kms_manual instead of being auto-calculated
string | null
Method used to compute the distance. See the Transport Overview for all values.
string
Section status: pending, active, error
string | null
Current processing step: geocoding, impact_calculation, completed
array | null
List of error messages when status is error
string | null
Emission factor reference product used for impact calculation
array | null
CO2e emissions for this section: [{"value": 12.34, "gas": "co2e", "unit_name": "kgCO2e"}]

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key / JWT token

403 Forbidden

Cause: The authenticated user is not a member of the organization

422 Unprocessable Entity

Cause: Invalid query parameter value (e.g. unrecognized status or direction)

Get Transport Route

Retrieve a single transport route by ID

Create Transport Route

Create a new transport route with sections

Update Transport Route

Modify a transport route and its sections

Transport Overview

Full data model and distance calculation reference