{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "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`.",
      "errors": [
        {
          "description": "No valid session cookie or bearer key was presented.",
          "name": "AuthRequired"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "keys": {
              "items": {
                "ref": "dev.cocore.account.defs#apiKeyView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "keys"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "dev.cocore.account.listApiKeys",
  "lexicon": 1
}
