Skip to main content
GET
List Sessions

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 the session slug.

company_slug
string | null

Only records of this company (exact slug).

company_slug__in
string | null

Only records of these companies (comma-separated slugs).

created_at__gte
string<date-time> | null

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

created_at__lte
string<date-time> | null

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

Response

Sessions retrieved. Returns a paginated list with computed status, duration, route count, and operation counts.

items
SessionListItem · 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