Skip to main content
GET
List Custom Vehicle States

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

config_source
enum<string>
default:mobile

Legacy parameter, kept for compatibility and ignored: the integration is always the one configured for your company.

Available options:
mobile,
ops
filter
string[]

Filter on a field of the returned items, as field:op:value (or field:value for eq); repeat the parameter to combine filters (AND). Operators: eq, neq, contains (case-insensitive, text fields), gt, gte, lt, lte (numbers), in (comma-separated values). Nested fields use dots, e.g. extra_params.zone. A filter with an unknown operator is ignored. Example: battery_level:lt:20.

sort
string
default:""

Sort order as comma-separated field:dir pairs, dir being asc (default) or desc; items without the field come last. Example: battery_level:asc,last_seen:desc.

limit
integer
default:50

Items per page (1-500).

Required range: 1 <= x <= 500
cursor
string | null

Opaque cursor from the previous page's next_cursor; omit it for the first page. Keep the same filters and sort between pages.

Response

Custom states retrieved. One page and the pagination state.

items
IntegrationCustomState · object[]
required
next_cursor
string | null
has_more
boolean
default:false
total_count
integer
default:0