Skip to main content
GET
Get an API key

Authorizations

Authorization
string
header
required

Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.

Path Parameters

id
string
required

API key ID

Response

The API key

id
string
name
string
description
string | null
keyType
enum<string>
Available options:
personal,
service
assignedToUserId
string | null

The member who owns the key; null for a service key.

createdByUserId
string | null
permissionMode
enum<string>
Available options:
all,
readonly,
restricted
permissions
string[]

The resource:action permissions a restricted key grants. Empty for the other modes.

createdAt
string<date-time>
expiresAt
string<date-time> | null
lastUsedAt
string<date-time> | null
revokedAt
string<date-time> | null
roleBindings
object[]
bindings
object[]