Skip to main content

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
  • Automatic Distance Calculation: Distances computed via CERDI (maritime), Google Maps (road/rail), or haversine formula (air) — or provided manually
  • 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 support both authentication methods:
  • API Key: Include in x-api-key header

Headers

All requests must include:
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa
string
Your API key for authentication (use this or Authorization)Example: sk_live_1234567890abcdef

Available 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

do_not_know Inference

How Dcycle infers transport mode and distance automatically

Data Model

Transport Route Object

A transport route represents a shipment with one or more transport sections (legs):

Transport Route Attributes

Transport Section Attributes

Transport Types

Distance Calculation Methods

The kms_source field on each section tells you how the distance was determined:
CERDI distance explained: For maritime routes between different countries, the distance is calculated as the sum of three components from the CERDI dataset: the sea route between the countries’ main ports, the land distance from the origin country’s capital to its main port, and the land distance from the destination country’s capital to its main port. This is a country-level approximation — all shipments between two countries receive the same maritime distance regardless of the specific origin/destination city.

Error Handling

Common HTTP Status Codes

Common Use Cases

Create a multi-leg shipment

Upload transport data via presigned URL

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

MCP Tools

Query transport records from AI assistants via MCP