Skip to main content
GET
List Routes (Cross-Session)

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.

Query Parameters

cursor
integer | null

next_cursor of the previous page; omit for the first page. Returns routes with an ID up to this value.

limit
integer
default:5

Routes per page (1-100).

Required range: 1 <= x <= 100
status
enum<string>
default:all

Only routes with this status; all for every status.

Available options:
all,
active,
late,
expired,
completed
expiration_threshold_minutes
integer
default:1440

How long, in minutes, a route stays active after its last estimated arrival before it becomes expired. Defaults to 24 hours.

scope
enum<string>
default:assigned_to_me

Whose routes: assigned_to_me (you are a driver), my_company or company_tree (your company and its child companies).

Available options:
assigned_to_me,
my_company,
company_tree

Response

Routes retrieved. Returns a cursor-paginated list with computed status, progress, driver names, and operation counts.

A page of routes, newest first, with the cursor of the next page.

items
RouteListItem · object[]
required

Routes, newest first.

has_more
boolean
required

Whether more results exist beyond this page.

next_cursor
integer | null

Pass as cursor to get the next page; absent on the last page.