# List enrolled WebAuthn security keys

Returns all enrolled WebAuthn hardware keys and passkeys for a mailbox.

## `GET /api/v1/identities/{identityId}/webauthn/credentials`

### Path parameters

- `identityId` (string, required) — Mailbox identity ULID

### Responses

**200** — List of enrolled keys

`application/json` → object

- `credentials` (WebauthnCredential[], required)
  - `createdAt` (integer <int64>, required) — Enrollment timestamp in epoch seconds
  - `id` (string, required) — Unique WebAuthn credential ULID
  - `lastUsedAt` (integer | null, required) — Timestamp when key was last used for authentication, or null
  - `name` (string | null, required) — User-assigned name for the security key or passkey
  - `rpId` (string, required) — Relying party ID (hostname) the key is bound to
  - `transports` (array | null, required) — Supported authenticator transports (usb, nfc, ble, internal)

**401** — unauthorized: the bearer credential is missing, malformed, expired, or revoked. Carries a `WWW-Authenticate: Bearer` challenge

`application/json` → ErrorBody

**404** — Mailbox not found or not accessible to this principal

`application/json` → ErrorBody

**503** — temporary_failure: the platform's storage could not answer just now; retry after the Retry-After window. Any operation can answer this. A write that got it may have been applied, so retry it with the same idempotency key where it takes one, or read the state back first (see Transient failures in the API description)

`application/json` → ErrorBody

### Example request

```bash
curl -X GET 'https://api.open.email/api/v1/identities/{identityId}/webauthn/credentials' \
  -H 'Authorization: Bearer oek_…'
```

## TypeScript SDK

[`openemail.securityKeys.list`](/docs/sdks/typescript/security-keys/list)

```ts
const result = await openemail.securityKeys.list(identityId)
```
