TypeScript SDK reference
Every method of @doorman/inbox-sdk, grouped as the API reference groups its operations, with its signature, what it does and the operation it sends.
On this page
How to read it
This is every method of the DoormanInbox client in @doorman/inbox-sdk: 143 that each send one operation of the API, and 16 helpers built on them, such as the page iterators. The SDK is the guide; this is the list.
The signatures and the descriptions are read from the package's source when this documentation is built, so they are the ones the package has. A method that sends an operation names it and links to its entry in the API reference, where the fields, the answers and the errors are. The client has a method for all 84 operations of the public surface, and the package's tests hold it to that.
- A method's name is the operation's id:
inboxes.createisclient.inboxes.create. - A path parameter is an argument, in the order the path has them. A request body is one object after them, and query parameters are one object of options.
- A method resolves with the answer's JSON, typed as the contract's schema, or with nothing for an operation that answers without a body.
- A method rejects with an
ApiErrorfor an answer of400or more. Nothing is retried for you.
System
Liveness and this document. No credential.
| Method | What it does |
|---|---|
client.health | Health check |
client.openapi | The OpenAPI document |
Account
The account, its plan and usage, and account-wide counts.
| Method | What it does |
|---|---|
client.me | Who am I |
client.overview | Overview |
client.metrics | Metrics |
client.billing.checkout | Start a checkout |
client.billing.portal | Open the billing portal |
client.billing.sync | Read billing again |
client.billing.seats | Change the organization's seats |
client.push.get | Read notification settings |
client.push.subscriptions.create | Switch notifications on for a browser |
client.push.subscriptions.delete | Switch notifications off for a browser |
client.members.list | List the organization's members |
client.members.update | Change a member's role |
client.invitations.list | List the organization's invitations |
client.invitations.create | Invite someone to the organization |
client.invitations.update | Record that an invitation was sent |
client.invitations.revoke | Take an invitation back |
client.organization.adopt | Move a personal account into the organization |
Inboxes
Addresses on the inbox domain: issue, read, rename and delete them.
| Method | What it does |
|---|---|
client.inboxes.list | List inboxes |
client.inboxes.iterate | Every inbox of the account, page by page. |
client.inboxes.findByExternalId | The inbox tagged with this externalId, or null. |
client.inboxes.create | Issue an inbox |
client.inboxes.get | Read an inbox |
client.inboxes.update | Update an inbox |
client.inboxes.delete | Delete an inbox |
client.inboxes.rules.list | List inbound rules |
client.inboxes.rules.create | Create an inbound rule |
client.inboxes.rules.get | Read an inbound rule |
client.inboxes.rules.update | Update an inbound rule |
client.inboxes.rules.delete | Delete an inbound rule |
client.inboxes.rules.runs | List rule executions |
client.inboxes.rules.iterateRuns | Every run of a rule, newest first, page by page. |
Domains
Account-owned mail domains, DNS records, verification and setup.
| Method | What it does |
|---|---|
client.domains.list | List custom domains |
client.domains.create | Add a custom domain |
client.domains.get | Read a custom domain |
client.domains.verify | Check the domain's DNS |
client.domains.connectSession | Start automatic DNS setup |
client.domains.delete | Remove a custom domain |
API keys
Credentials for agents: account-wide keys from the console, inbox-scoped keys from the API.
| Method | What it does |
|---|---|
client.inboxes.keys.create | Create an inbox key |
client.inboxes.keys.list | List an inbox's keys |
client.inboxes.keys.get | Read an inbox key |
client.inboxes.keys.revoke | Revoke an inbox key |
client.apiKeys.list | List account keys |
client.apiKeys.create | Create an account key |
client.apiKeys.get | Read an account key |
client.apiKeys.revoke | Revoke an account key |
Threads, messages, raw and HTML bodies, attachments and their extracted text.
| Method | What it does |
|---|---|
client.inboxes.threads.list | List threads |
client.inboxes.threads.listBySeen | List threads a person has or has not seen |
client.inboxes.threads.iterate | Every thread of the inbox, page by page. |
client.inboxes.messages.list | List messages |
client.inboxes.messages.iterate | Every message of the inbox, page by page. |
client.threads.get | Read a thread |
client.threads.update | Update a thread |
client.threads.trash | Trash a thread |
client.threads.restore | Restore a trashed thread |
client.threads.seen | Mark a thread seen |
client.threads.messages | Read a thread's messages |
client.messages.get | Read a message |
client.messages.raw | Download the original message |
client.messages.html | Read the HTML body |
client.attachments.download | Download an attachment |
client.attachments.text | Read an attachment's text |
Passport
The outside services an inbox's address is signed up for, the verification codes and sign-in links they send, and how the address signs in to the ones that accept Sign in with Doorman.
| Method | What it does |
|---|---|
client.inboxes.services.create | Declare or add a service |
client.inboxes.verifications.list | Read verification codes |
client.inboxes.signIns.create | Start a sign-in |
client.passport.get | Read passport settings |
client.passport.update | Update passport settings |
client.services.list | List services |
client.services.iterate | Every service of the passport, page by page. |
client.services.get | Read a service |
client.services.update | Update a service |
client.services.delete | Delete a service |
Security
Risk assessment and sender trust: the policy that warns, holds and guards sending, the senders an inbox knows, held mail and the audit log.
| Method | What it does |
|---|---|
client.inboxes.security.get | Read an inbox's security policy |
client.inboxes.security.update | Give an inbox its own security policy |
client.inboxes.security.reset | Return an inbox to the account's security policy |
client.inboxes.senders.list | List an inbox's senders |
client.inboxes.senders.iterate | Every sender of the inbox, page by page. |
client.inboxes.held.list | List held messages |
client.inboxes.held.iterate | Every held message stub of the inbox, page by page. |
client.inboxes.heldSends.list | List held sends |
client.inboxes.heldSends.iterate | Every held send of the inbox in one state, page by page. |
client.messages.release | Release a held message |
client.messages.discard | Discard a held message |
client.messages.feedback | Mark a message safe or unsafe |
client.security.get | Read the security policy |
client.security.update | Change the security policy |
client.security.audit | Read the security audit log |
client.security.iterateAudit | Every entry of the security audit log, page by page. |
client.security.preview | Preview what a policy does to a message |
client.senderRules.list | List sender rules |
client.senderRules.iterate | Every sender rule matching the filters, page by page. |
client.senderRules.create | Trust or block a sender |
client.senderRules.delete | Remove a sender rule |
client.heldSends.get | Read a held send |
client.heldSends.approve | Send a held send |
client.heldSends.discard | Discard a held send |
Healthcare
The business associate agreement an eligible team signs, and the guardrails it unlocks: protected health information replaced in everything an agent or a system is given, held or refused on the way out, and custom guardrails. Every operation answers 404 until the deployment switches the capability on.
| Method | What it does |
|---|---|
client.inboxes.guardrails.get | Read an inbox's guardrails |
client.inboxes.guardrails.update | Give an inbox its own guardrails |
client.inboxes.guardrails.reset | Return an inbox to the account's guardrails |
client.messages.original | Read a message as it arrived |
client.baa.get | Read the agreement's standing |
client.baa.document | Read the agreement |
client.baa.sign | Sign the agreement |
client.baa.terminate | End the agreement |
client.guardrails.get | Read the guardrails |
client.guardrails.update | Change the guardrails |
client.guardrails.preview | Preview what the guardrails do to a text |
client.guardrails.rules.list | List custom guardrails |
client.guardrails.rules.create | Write a custom guardrail |
client.guardrails.rules.update | Change a custom guardrail |
client.guardrails.rules.delete | Remove a custom guardrail |
Sending
New messages and replies from an inbox, with idempotent retries.
| Method | What it does |
|---|---|
client.inboxes.send | Send a message or reply |
client.inboxes.reply | A reply in a thread: inboxes.send with threadId. |
client.inboxes.drafts.create | Write a draft for the owner to send |
client.drafts.delete | Take a draft back |
Webhooks
The inbox webhook, account endpoints, their signed deliveries and the delivery log.
| Method | What it does |
|---|---|
client.inboxes.webhook.get | Read the inbox webhook |
client.inboxes.webhook.set | Set the inbox webhook |
client.inboxes.webhook.rotateSecret | Rotate the inbox webhook's secret |
client.inboxes.webhook.delete | Remove the inbox webhook |
client.inboxes.webhook.deliveries | List the inbox webhook's deliveries |
client.inboxes.webhook.iterateDeliveries | Every delivery of the inbox webhook's log, newest first, page by page. |
client.webhooks.list | List endpoints |
client.webhooks.create | Create an endpoint |
client.webhooks.get | Read an endpoint |
client.webhooks.update | Change an endpoint |
client.webhooks.delete | Delete an endpoint |
client.webhooks.rotateSecret | Rotate an endpoint's secret |
client.webhooks.test | Send a test delivery |
client.webhooks.deliveries | List an endpoint's deliveries |
client.webhooks.iterateDeliveries | Every delivery of the endpoint's log, newest first, page by page. |
client.deliveries.retry | Retry a delivery |
Events
The account's event log: page back through it, or poll it forward.
| Method | What it does |
|---|---|
client.events.list | List or poll events |
client.events.iterate | Every event of the log, newest first, page by page. |
client.events.poll | events.list with after: the events with a larger seq, oldest first, and latestSeq to poll from next. |
client.events.get | Read an event |
Stream
Events pushed over a WebSocket, with replay.
| Method | What it does |
|---|---|
client.stream | Open the event stream |
Apps
Developer clients, installed apps and explicit session-bound consent.
| Method | What it does |
|---|---|
client.apps.list | List developer apps |
client.apps.create | Register an app |
client.apps.get | Read an app |
client.apps.update | Update an app |
client.apps.delete | Delete an app |
client.apps.rotateSecret | Rotate a client secret |
client.installs.list | List installed apps |
client.installs.revoke | Revoke an installation |
client.oauthRequests.get | Read a consent request |
client.oauthRequests.decide | Decide a consent request |
Sign in with Doorman
The relying parties a developer registers, the sign-ins that wait for the owner's decision, and what the web app does for a browser on the way. Every operation answers 404 until the deployment switches sign-in on.
| Method | What it does |
|---|---|
client.signIn.clients.list | List relying parties |
client.signIn.clients.create | Register a relying party |
client.signIn.clients.get | Read a relying party |
client.signIn.clients.update | Update a relying party |
client.signIn.clients.delete | Delete a relying party |
client.signIn.clients.rotateSecret | Rotate a relying party's secret |
client.signIn.clients.verify | Verify a relying party's host |
client.signIn.requests.get | Read a sign-in that waits for the owner |
client.signIn.requests.decide | Decide a sign-in |
client.signIn.requests.resume | Resume a sign-in |
client.signIn.links.read | Read a sign-in link |
client.signIn.links.open | Open a sign-in link |
Beyond the operations
- Client and helpers: What @doorman/inbox-sdk exports besides the resources of the API: the client and its options, the parameters of lists and sends, pagination, errors, the stream, webhook verification, OAuth and the transport.

