Skip to main content
GET
List API Keys

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

search
string | null

Search term to filter API keys by name.

uuid
string | null

Exact UUID to filter by.

name
string | null

Exact name to filter by.

exp__gte
string<date-time> | null

Filter for API keys with expiration greater than or equal to this datetime.

exp__gt
string<date-time> | null

Filter for API keys with expiration greater than this datetime.

exp__lte
string<date-time> | null

Filter for API keys with expiration less than or equal to this datetime.

exp__lt
string<date-time> | null

Filter for API keys with expiration less than this datetime.

created_at__gte
string<date-time> | null

Filter for API keys created after or at this datetime.

created_at__gt
string<date-time> | null

Filter for API keys created after this datetime.

created_at__lte
string<date-time> | null

Filter for API keys created before or at this datetime.

created_at__lt
string<date-time> | null

Filter for API keys created before this datetime.

authscope__order_by
string | null

Fields to order the results by. Comma-separated.

authscope__search
string | null

Search term to filter scopes by slug or description.

authscope__slug
string | null

Exact slug to filter by.

authscope__slug__in
string | null

List of slugs to filter by. Comma-separated.

authscope__description
string | null

Exact description to filter by.

Body

application/json
order_by
string[] | null
uuid__in
string[] | null
name__in
string[] | null

Response

Paginated list of API keys successfully retrieved with applied filters.

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