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?).
TypeScript SDK
openemail.authTypeScript SDKopenemail.apiKeysTypeScript SDKopenemail.credentialsTypeScript SDKopenemail.passwordsTypeScript SDKopenemail.recoveryTypeScript SDKopenemail.securityKeysTypeScript SDKopenemail.identities- GETGet current authenticated identityAnswers what the presented bearer credential IS and therefore what it reaches; call it first when integrating.
- POSTCreate API keyCreates an API key and returns the plaintext secret token once.
- GETList API keysReturns a paginated list of API keys without secrets.
- DELETERevoke an API keyPermanently revokes an API key.
- POSTCreate mailbox credentialCreates an IMAP login password or generates a scoped API app password for a mailbox.
- GETList mailbox credentialsReturns every credential of a mailbox, revoked and expired ones included (secrets are never returned).
- DELETERevoke a mailbox credentialRevokes an existing password or app password, closing its active sessions.
- POSTInvite a mailbox user to set their own passwordNominates an address as this mailbox's recovery address and mails it one code.
- PUTChange mailbox login passwordUpdates the login password for a mailbox by verifying the existing password.
- POSTReset a mailbox password as an administratorSets 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…
- PUTSet the mailbox's recovery addressStores an address as PENDING and mails it an 8-character confirmation code, valid for 24 hours.
- GETRead mailbox recovery postureReports whether this mailbox has a verified recovery address and how many recovery codes remain.
- DELETERemove the mailbox's recovery addressRemoves the verified address and any pending one, and notifies both the mailbox and the address being removed.
- POSTConfirm the mailbox's pending recovery addressSpends the mailed confirmation code and promotes the pending address to verified.
- POSTIssue mailbox recovery codesIssues a fresh set of ten single-use recovery codes and returns the plaintext exactly once, invalidating any previous set.
- POSTBegin WebAuthn security key registrationGenerates a WebAuthn challenge and registration options to enroll a new hardware security key or passkey for 2-factor authentication.
- POSTFinish WebAuthn security key registrationVerifies the browser WebAuthn attestation response and stores the enrolled security key.
- GETList enrolled WebAuthn security keysReturns all enrolled WebAuthn hardware keys and passkeys for a mailbox.
- DELETERemove an enrolled WebAuthn security keyDeletes an enrolled WebAuthn security key from a mailbox.
- GETList an identity's clientsWhere this identity has been reached from: one row per (protocol, network, credential), newest first, up to 200 tuples over the last 30 days.
Restore deleted account POST
Cancels a pending account deletion during the grace period and restores access.
Get current authenticated identity GET
Answers what the presented bearer credential IS and therefore what it reaches; call it first when integrating. Key on `type`: `account` (an `oek_…` API key…