/v1/api-keysReturns 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
Your API keys.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the key.
namestringRequiredLabel you gave the key.
prefixstringRequiredFirst 8 characters of the token's identifier, used to recognise the key.
scopesarray of stringsRequiredWhat the key can be used for.
One ofclimcp
permissionsarray of stringsRequiredPermissions 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_expiresbooleanPresent 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)RequiredWhen the key was created.
last_used_atstring (date-time)When the key last authenticated a request. Omitted if it has never been used.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
Errors use the standard error format.