> ## Documentation Index
> Fetch the complete documentation index at: https://docs.capcells.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List the keys

> Every API key ever issued to the Tenancy, revoked ones included, newest first.

Revoked keys are listed, not hidden: the question is as often "which key is this fingerprint" as "what is still live".

Nothing in the answer is secret. The key itself is never stored and cannot be read back.

## Who may call

An administrator of the organization, as a person. The agent is refused on live and sandbox Tenancies alike.

## Path parameters

**tenant\_id** `string` *required*

The Tenancy acting. It comes from [Read the tenancy](https://docs.capcells.com/api-reference/console/tenancy/read.md); your organization must be bound to it.

## Response

**keys** `array` *required*

Every key.

**key**

**fingerprint** `string` *required*

The key's public half: 43 characters of base64url. Request records name it, and a revocation is given it. It is not a secret.

**scope** `string` *required*

What the key may do: `read` or `write`.

**kind** `string` *required*

Always `tenant_service` today.

**minted\_by** `string` *required*

Who issued it: `console:{org_id}:{sub}` for one minted here, `iam:…` for one a Platform operator minted.

**never\_expires** `boolean` *required*

Read this before `expires_at`.

**expires\_at** `string or null` *required*

`null` exactly when `never_expires` is `true`.

**created\_at** `string` *required*

When it was issued.

**revoked** `boolean` *required*

Whether a revocation stands beside the issuance.

## Refusals

| Status | Code | When |
| - | - | - |
| `401` | `unauthenticated` | The token is missing or cannot be used |
| `403` | `not_permitted_tenant` | Your organization does not act for the Tenancy in the path |
| `403` | `not_permitted_role` | The caller is not an administrator |
| `403` | `not_permitted_actor` | The caller is the agent |
| `400` | `invalid_query` | The URL carries a query parameter, which this route does not read |

Every refusal carries the [error shape](https://docs.capcells.com/api-reference/overview.md#the-error-shape). `429` and `503` answer as at the signing door.

```bash Request theme={null}
curl https://api.capcells.com/console/v1/tenants/capyplazo/keys \
  -H "Authorization: Bearer $CONSOLE_TOKEN"
```

```json 200 theme={null}
{
  "keys": [
    {
      "fingerprint": "pfp1z8QkV2m9xL0aR7tCwYb3nH5jK8dF1gS4uE6oPqZ",
      "scope": "write",
      "kind": "tenant_service",
      "minted_by": "console:org_capy:user_egor",
      "never_expires": false,
      "expires_at": "2026-09-14T09:12:44Z",
      "created_at": "2026-08-15T09:12:44Z",
      "revoked": false
    },
    {
      "fingerprint": "k2mAq07xN9vB4cD1eF8hJ3lM6pR0sT5wX2yZ7aC4gI9",
      "scope": "read",
      "kind": "tenant_service",
      "minted_by": "iam:egor@capcells.example",
      "never_expires": true,
      "expires_at": null,
      "created_at": "2026-08-01T11:03:02Z",
      "revoked": true
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.