Skip to main content
GET
Get API Key

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.

Path Parameters

uuid
string
required

Id of the API key: the uuid returned when it was created or by GET /auth/api-keys.

Response

API key metadata successfully retrieved.

Public schema for an API key resource.

Exposes API key metadata and associated authorization scopes to API consumers.

uuid
string
required

Unique UUID identifier for the API key.

name
string
required

Name of the API key.

created_at
string<date-time>
required

Datetime when the API key was created.

auth_scopes
AuthScopePublic · object[]
required

List of authorization scopes assigned to the API key.

exp
string<date-time> | null

When the key expires (UTC).