Skip to content

List API keys

GET/v1/api-keys

Returns your active API keys. Secret tokens are never returned, only the prefix that identifies each key.

Authentication

Send your API key as Authorization: Bearer <token>.

Response

200

Your API keys.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the key.

namestringRequired

Label you gave the key.

prefixstringRequired

First 8 characters of the token's identifier, used to recognise the key.

scopesarray of stringsRequired

What the key can be used for.

One ofclimcp

permissionsarray of stringsRequired

Permissions the key may use. A request also needs your role in that workspace to grant the same permission. A key with no stored list uses the default set.

One ofworkspace.readresource.writeruntime.connectsecrets.readsecrets.managemembers.manageaudit.readbilling.readbilling.manageworkspace.manageworkspace.transferworkspace.delete

never_expiresboolean

Present and true when the key has no expiry.

expires_atstring (date-time)

When the key expires (RFC 3339, UTC). Omitted for keys that never expire.

created_atstring (date-time)Required

When the key was created.

last_used_atstring (date-time)

When the key last authenticated a request. Omitted if it has never been used.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.

Errors use the standard error format.