# Credentials

Who may call: account API keys (oek_), per-mailbox app passwords (oemp_), WebAuthn security keys, password and recovery flows, and whoami (which credential am I holding?).

- `GET` [Get current authenticated identity](/docs/api/credentials/get_AuthWhoami): Answers what the presented bearer credential IS and therefore what it reaches; call it first when integrating.
- `POST` [Create API key](/docs/api/credentials/post_ApiKeyCreate): Creates an API key and returns the plaintext secret token once.
- `GET` [List API keys](/docs/api/credentials/get_ApiKeyList): Returns a paginated list of API keys without secrets.
- `DELETE` [Revoke an API key](/docs/api/credentials/delete_ApiKeyDelete): Permanently revokes an API key.
- `POST` [Create mailbox credential](/docs/api/credentials/post_CredentialCreate): Creates an IMAP login password or generates a scoped API app password for a mailbox.
- `GET` [List mailbox credentials](/docs/api/credentials/get_CredentialList): Returns every credential of a mailbox, revoked and expired ones included (secrets are never returned).
- `DELETE` [Revoke a mailbox credential](/docs/api/credentials/delete_CredentialDelete): Revokes an existing password or app password, closing its active sessions.
- `POST` [Invite a mailbox user to set their own password](/docs/api/credentials/post_MailboxInvitationCreate): Nominates an address as this mailbox's recovery address and mails it one code.
- `PUT` [Change mailbox login password](/docs/api/credentials/put_PasswordChange): Updates the login password for a mailbox by verifying the existing password.
- `POST` [Reset a mailbox password as an administrator](/docs/api/credentials/post_MailboxPasswordReset): Sets a new password on every password credential the mailbox has, creating one if it has none (named after the primary address, or the group address for a…
- `PUT` [Set the mailbox's recovery address](/docs/api/credentials/put_RecoveryAddressSet): Stores an address as PENDING and mails it an 8-character confirmation code, valid for 24 hours.
- `GET` [Read mailbox recovery posture](/docs/api/credentials/get_RecoveryStatusRead): Reports whether this mailbox has a verified recovery address and how many recovery codes remain.
- `DELETE` [Remove the mailbox's recovery address](/docs/api/credentials/delete_RecoveryAddressDelete): Removes the verified address and any pending one, and notifies both the mailbox and the address being removed.
- `POST` [Confirm the mailbox's pending recovery address](/docs/api/credentials/post_RecoveryAddressConfirm): Spends the mailed confirmation code and promotes the pending address to verified.
- `POST` [Issue mailbox recovery codes](/docs/api/credentials/post_RecoveryCodesCreate): Issues a fresh set of ten single-use recovery codes and returns the plaintext exactly once, invalidating any previous set.
- `POST` [Begin WebAuthn security key registration](/docs/api/credentials/post_WebauthnRegisterBegin): Generates a WebAuthn challenge and registration options to enroll a new hardware security key or passkey for 2-factor authentication.
- `POST` [Finish WebAuthn security key registration](/docs/api/credentials/post_WebauthnRegisterFinish): Verifies the browser WebAuthn attestation response and stores the enrolled security key.
- `GET` [List enrolled WebAuthn security keys](/docs/api/credentials/get_WebauthnCredentialList): Returns all enrolled WebAuthn hardware keys and passkeys for a mailbox.
- `DELETE` [Remove an enrolled WebAuthn security key](/docs/api/credentials/delete_WebauthnCredentialDelete): Deletes an enrolled WebAuthn security key from a mailbox.
- `GET` [List an identity's clients](/docs/api/credentials/get_IdentityClientList): Where this identity has been reached from: one row per (protocol, network, credential), newest first, up to 200 tuples over the last 30 days.
