{
"id": "dev.cocore.account.listApiKeys",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "AuthRequired",
"description": "No valid session cookie or bearer key was presented."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"keys"
],
"properties": {
"keys": {
"type": "array",
"items": {
"ref": "dev.cocore.account.defs#apiKeyView",
"type": "ref"
}
}
}
},
"encoding": "application/json"
},
"description": "List every API key belonging to the authenticated account, most-recently-created first. The owning DID is derived from the credential presented (session cookie or `Authorization: Bearer cocore-...`); there is no way to list another account's keys. Secrets are never returned — see `apiKeyView`."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}