Transport API
The Transport API lets you create and manage transport routes for tracking Scope 3 upstream and downstream transportation emissions. Each route can have multiple sections (legs) with different transport types, and emissions are automatically calculated using ecoinvent emission factors.New API: These endpoints are part of the new API architecture and replace the legacy
transport_routes and transport_sections endpoints.Key Features
- Multi-Section Routes: Define routes with multiple transport legs (e.g., truck to port, ship overseas, truck to warehouse)
- Automatic Emissions Calculation: CO2e emissions calculated per section using ecoinvent factors
- Bulk Operations: Upload routes via CSV/Excel or delete in bulk by IDs or filters
- Presigned URL Uploads: Upload large files directly to S3 via presigned URLs
- Version History: Track changes to transport routes over time
- Flexible Filtering: Filter by date, status, direction, file, and CO2e calculation status
Authentication
All endpoints require authentication using either:- API Key: Include in
x-api-keyheader - JWT Token: Include in
Authorizationheader asBearer {JWT_TOKEN}
Headers
All requests must include:Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faYour API key for authenticationExample:
sk_live_1234567890abcdefAvailable Endpoints
Transport Route Management
List Transport Routes
Retrieve all transport routes with filtering, sorting, 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 one or more sections
Update Transport Route
Modify a transport route and its sections
Delete Transport Route
Remove a transport route
Get Route Counts
Get aggregate counts by status (pending, active, error)
Bulk Operations
Upload File
Upload transport routes via CSV/Excel file
Presigned URL Upload
Get a presigned S3 URL for large file uploads
Bulk Delete by IDs
Delete up to 100,000 transport routes by ID
Bulk Delete by Filters
Delete all routes matching filter criteria
Reference Data
Transport Combinations
Get valid transport type/method combinations
Version History
View change history for a transport route
Data Model
Transport Route Object
A transport route represents a shipment with one or more transport sections (legs):Transport Route Attributes
| Field | Type | Description |
|---|---|---|
id | UUID | Unique identifier |
name | string | Optional route name |
transport_date | date | Date of transport (YYYY-MM-DD) |
quantity_transported | decimal | Amount transported (max 10 digits, 3 decimal places) |
supplier | string | Optional supplier name |
transport_direction | string | outbound or inbound |
transport_frequency | string | Recurrence: daily, weekly, monthly, etc. |
unit | object | Measurement unit for quantity |
co2e | float | Calculated CO2-equivalent emissions |
status | string | Route status: pending, active, error |
sections | array | List of transport sections (legs) |
file_id | UUID | ID of the uploaded file (if bulk-uploaded) |
created_at | datetime | Creation timestamp |
updated_at | datetime | Last update timestamp |
Transport Section Attributes
| Field | Type | Description |
|---|---|---|
id | UUID | Section identifier |
part | integer | Sequence number within the route |
transport_type | string | truck, air, maritime, rail, car, motorbike, bicycle, electric_kick_scooter, do_not_know |
travel_method | string | Travel method (type-specific) |
electric | boolean | Whether the vehicle is electric |
refrigerated | boolean | Whether the cargo is refrigerated |
detail | string | Additional detail category |
origin | string | Origin location |
destination | string | Destination location |
kms | float | Distance in kilometers |
status | string | Section calculation status |
Transport Types
| Type | Description |
|---|---|
truck | Road freight transport |
air | Air freight |
maritime | Sea freight |
rail | Rail freight |
car | Car transport |
motorbike | Motorbike transport |
bicycle | Bicycle transport |
electric_kick_scooter | Electric scooter |
do_not_know | Unknown transport type (uses default factors) |
Error Handling
Common HTTP Status Codes
| Status | Meaning | Solution |
|---|---|---|
| 200 | Success | - |
| 201 | Created | - |
| 204 | No Content (delete successful) | - |
| 400 | Bad Request | Check request parameters and format |
| 401 | Unauthorized | Verify API key |
| 404 | Not Found | Check resource ID or organization |
| 422 | Validation Error | Review error details in response |
| 500 | Server Error | Contact support if persists |
Common Use Cases
Create a multi-leg shipment
Upload transport data via presigned URL
Bulk delete routes from a specific file upload
Related Documentation
Logistics API
Manage logistics operations (GLEC Framework)
Vehicles API
Manage fleet vehicles and fuel consumption
GHG Protocol Scope 3
Scope 3 upstream/downstream transport guide
ISO 14064 Category 3
ISO 14064 transportation emissions guide

