Skip to main content
GET
List Drivers

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

include_children_companies
boolean
default:false

Also include the records of your child companies.

order_by
string | null

Comma-separated fields to sort by; prefix a field with - for descending order, e.g. -created_at,name.

search
string | null

Case-insensitive text matched anywhere in phone or license number.

is_active
boolean | null

Filter by active status.

phone__ilike
string | null

Case-insensitive match within phone number (a substring match unless you include % wildcards).

license_number__ilike
string | null

Case-insensitive match within license number (a substring match unless you include % wildcards).

created_at__gte
string<date-time> | null

Drivers created at or after this time (ISO 8601).

created_at__lte
string<date-time> | null

Drivers created at or before this time (ISO 8601).

Response

Drivers retrieved successfully. Returns a paginated list of driver profiles matching the specified filter criteria.

items
DriverPublic · object[]
required
total
integer
required
Required range: x >= 0
page
integer
required
Required range: x >= 1
size
integer
required
Required range: x >= 1
pages
integer
required
Required range: x >= 0