Skip to content
Connect an agent
Keys

List your API keys

Returns the active keys, newest first.

GET/user/api-keys

TL;DR

QuestionAnswer
What does it do?List your API keys.
What does it take?Nothing.
What does it return?Status 200 with a body of type ApiKeyList.
What can go wrong?401 not signed in; 429 too many requests. Every failure uses the one error envelope.

What it does

Returns the active keys, newest first. A key is shown as its first characters and its last four. revealable says whether the full value can be asked for with the reveal route.

Responses

StatusMeaningBody
200The active keys.ApiKeyList
401Not signed in.ErrorResponse
429Too many requests.ErrorResponse

Response body

A 200 answer has the type ApiKeyList.

FieldTypeRequiredDescription
itemsApiKeySummary[]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.

See also

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