List platform API keys
/v1/api-keysList platform API keys.
Returns the organization's management keys (never the secret, only key_hint), revoked ones included. With workspace_id: the keys scoped to that workspace plus the organization-scoped keys, which also act in it. Not paginated.
With workspace_id, requires access to that workspace: an organization owner or admin, a member of the workspace, an organization-scoped va_ key with the admin role, or a va_ key scoped to the workspace. Without it, requires an organization owner or admin, or an organization-scoped va_ key with the admin role.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Query parameters
organizationstringrequiredthe organization's slug
workspace_idstring<uuid>a workspace id (UUID) to limit the list to the keys that act in that workspace
Responses
keysobject[]The keys, revoked ones included; the list is not paginated.
Child attributes
idstring<uuid>The key's id (UUID), used to revoke it.
namestringThe key's name, for people to recognise it.
organizationstringThe slug of the organization the key belongs to.
workspace_idstring<uuid>The workspace (UUID) a
workspace-scoped key is limited to; absent for anorg-scoped key.scopeenum<string>org: the key acts across the whole organization.workspace: it acts only onworkspace_id.One of
"org","workspace"roleenum<string>What the key may do:
adminormember, with the same rights as a person with that role in its scope.One of
"admin","manager","member"key_hintstringThe key's last four characters, to tell keys apart.
expires_atstring<date-time>When the key stops working (ISO 8601 date-time); absent when it does not expire.
last_used_atstring<date-time>When the key last authenticated a request (ISO 8601 date-time); absent if it never has.
created_bystringThe user id of the person who created the key.
statusenum<string>ACTIVE, orREVOKEDonce revoked; a revoked key is refused.One of
"ACTIVE","REVOKED"created_atstring<date-time>When the key was created (ISO 8601 date-time).
totalinteger<int32>The number of entries in
keys.