# List customer-managed key versions and their re-seal state

<div class="api-op" data-api-operation>
<div class="api-op__main">

<p class="api-endpoint"><span class="method method-get">GET</span> <code>/v1/encryption_keys</code></p>

Every key version of the environment (environment-wide and organization keys), newest version first per scope, with the background re-seal state of each scope. Registering keys needs the Enterprise plan; listing works on every plan and returns empty lists when the environment has no keys.

<dl class="api-facts"><div><dt>Scope</dt><dd><code>encryption_keys:read</code></dd></div><div><dt>Auth</dt><dd>Secret key (<code>sk_…</code>)</dd></div><div><dt>Since</dt><dd>1.0</dd></div></dl>

## Responses

<ul class="api-responses">
<li class="api-response"><span class="api-status api-status--ok">200</span> <span>Key versions <span class="api-field__type">EncryptionKeyList</span></span></li>
<li class="api-response"><span class="api-status api-status--neutral">default</span> <span>Any other error, including <a href="/errors/internal_error/">internal_error</a>. Every code is in the error catalogue. <span class="api-field__type">Error</span></span></li>
</ul>

Errors share one shape; see the [error code catalogue](/errors/).

</div>
<div class="api-op__code">

**curl**

```sh wrap
curl -X GET \
  "https://api.ohauthcat.com/v1/encryption_keys" \
  -H "Authorization: Bearer $OHAUTHCAT_API_KEY"
```

**Node**

```javascript wrap
const response = await fetch("https://api.ohauthcat.com/v1/encryption_keys", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.OHAUTHCAT_API_KEY}`,
  },
});
const data = await response.json();
```

**Python**

```python wrap
import os
import requests

response = requests.get(
    "https://api.ohauthcat.com/v1/encryption_keys",
    headers={"Authorization": f"Bearer {os.environ['OHAUTHCAT_API_KEY']}"},
)
data = response.json()
```

```json title="Response 200" wrap
{
  "object": "list",
  "data": [
    {
      "id": "ekey_01J9ZQ4M7K2X8V3N5B6C1D0E9F",
      "object": "encryption_key",
      "scope": "environment",
      "organization": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
      "version": 1,
      "provider": "aws_kms",
      "key_arn": "arn:aws:kms:ap-south-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
      "state": "active",
      "last_error": "saml_signature_invalid",
      "created_at": "2026-01-15T09:30:00Z",
      "validated_at": "2026-01-15T09:30:00Z",
      "deprecated_at": "2026-01-15T09:30:00Z",
      "revoked_at": "2026-01-15T09:30:00Z"
    }
  ],
  "reseals": [
    {
      "scope": "environment",
      "organization": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
      "target_key": "ekey_01J9ZQ4M7K2X8V3N5B6C1D0E9F",
      "status": "pending",
      "rows_resealed": 1,
      "enforced": true,
      "last_error": "saml_signature_invalid",
      "updated_at": "2026-01-15T09:30:00Z"
    }
  ]
}
```

</div>
</div>
