Skip to main content
GET
Get transport route

Authorizations

X-API-Key
string
header
required

Per-manufacturer API key in the X-API-Key header, format emidat-{key_id}-{secret} where key_id is a random public handle. Issued by an owner in the Emidat dashboard; carries its own permission scopes, optional plant restrictions, and optional expiry. A revoked, expired, or unknown key returns 401. See the Authentication guide for details.

Path Parameters

id
string<uuid>
required

UUID of the transport route.

Response

Transport route.

A transport route from a source to one of your plants, with at least one distance per modality in km. Several materials can travel the same route, and one lane (source and destination) can hold several routes.

id
string<uuid>
required
name
string
required

Unique among the routes on its lane, ignoring case.

Example:

"Acme Materials — Munich-Plant Rotterdam-3f9a1c"

source_kind
enum<string>
required

What source_id names: one of your supplier plants, or one of your own plants for a route between two of your plants.

Available options:
plant,
supplier_plant
source_id
string<uuid>
required

UUID of the supplier plant or plant the route starts at.

destination_kind
enum<string>
required

What destination_id names. Only plant (one of your plants) today; other kinds may be added, so branch on this rather than assuming it.

Available options:
plant
destination_id
string<uuid>
required

UUID of the plant the route delivers to.

truck_distance_km
number | null
required

Distance by truck in km.

train_distance_km
number | null
required

Distance by train in km.

ship_distance_km
number | null
required

Distance by ship in km.