Skip to main content
GET
Get Route Detail

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer <key>. Create one in the SWITCH Copilot under Settings → API keys (needs the API keys permission in your company), or with POST /auth/api-keys. The key is shown once, at creation.

Path Parameters

route_id
integer
required

Route ID, from the session detail or the route list.

Response

Route retrieved. Returns the route with operations, drivers, computed status, and progress.

Full route detail response (includes operations + drivers).

id
integer
required

Route ID.

session_slug
string
required

Session the route belongs to.

route_identifier
string
required

Your name for the route.

reroute_enabled
boolean
required

Whether the route can be re-optimized while it runs.

routing_parameters
Routing Parameters · object
required

Vehicle and shift parameters used when rerouting.

operations_parameters
Operations Parameters · object
required

Free-form data stored with the route.

status
enum<string>
required

completed when no operation is left open. Otherwise expired when the route's last estimated arrival is older than the expiration window (24 hours by default), late when an open operation is past its estimated arrival, and active otherwise.

Available options:
active,
late,
expired,
completed
total_operations
integer
required

Number of operations.

completed_operations
integer
required

Completed operations.

progress
number
required

Completion ratio: completed/total (0.0–1.0).

start_at
string<date-time> | null

Planned start.

end_at
string<date-time> | null

Planned end.

total_distance
number | null

Total planned distance in kilometres.

drivers
RouteDriverPublic · object[]

Assigned drivers.

operations
OperationPublic · object[]

Operations, ordered by step.