Skip to main content
GET
Get Current User Profile

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.

Response

User profile retrieved successfully. Returns the complete public user information including company, case studies, and auth scopes.

The calling user, their company and what they may access.

id
integer
required

Unique identifier of the user.

full_name
string
required

Full name of the user.

email
string
required

Email address of the user.

company_slug
string
required

Slug of the company the user belongs to.

created_at
string<date-time>
required

Datetime when the user was created.

company
CompanyPublic · object
required

Public information about the user's company.

case_studies
CaseStudyPublic · object[]
required

Always empty (legacy field).

auth_scopes
AuthScopePublic · object[]
required

Legacy authorization scopes, derived from the user's permissions.

is_internal
boolean
required
read-only

SWITCH staff or trial account (analytics flag).

updated_at
string<date-time> | null

Datetime when the user was last updated, if available.

driver
UserDriverPublic · object

Driver profile linked to this user, when present.

access
Access · object

What you can use: your level per resource (resources, e.g. fleet.vehicles: use), your company and plan (company), and the locations, fleets, analyses and forecasts your company's data covers (data). Absent only if it could not be resolved.