Skip to content
Connect an agent
Organisations

List an organisation's API keys

The organisation's active keys, newest first.

GET/orgs/{org}/keys

TL;DR

QuestionAnswer
What does it do?List an organisation's API keys.
What does it take?org in the path.
What does it return?Status 200 with a body of type OrgApiKeyList.
What can go wrong?401 not signed in; 403 a member may not see the keys (orgs.forbidden); 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

The organisation's active keys, newest first. A key is shown as its first characters and its last four. The owner and an admin may look.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The active keys.OrgApiKeyList
401Not signed in.ErrorResponse
403A member may not see the keys (orgs.forbidden).ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type OrgApiKeyList.

FieldTypeRequiredDescription
itemsOrgApiKeySummary[]yes
items[].idstringyes
items[].namestringyes
items[].prefixstringyes
items[].last4stringyes
items[].createdAtintegeryesMilliseconds since the epoch.
items[].lastUsedAtinteger | nullyesMilliseconds since the epoch, or null if never used.
items[].revealablebooleanyesTrue when the full key can be shown again with the reveal route. False for a key made before that was possible, or on a server that cannot seal keys.
items[].scopes("diagrams" | "audit:read")[]yesdiagrams: read the library, publish, and change its diagrams, which every key made before scopes holds. audit:read: read and export the audit log, and nothing else unless diagrams is also given.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools