Python SDK reference

Every method of the doorman-inbox client for Python, grouped as the API reference groups its operations, with its signature and the operation it sends.

On this page
  1. How to read it
  2. System
  3. Account
  4. Inboxes
  5. Domains
  6. API keys
  7. Mail
  8. Passport
  9. Security
  10. Healthcare
  11. Sending
  12. Webhooks
  13. Events
  14. Apps
  15. OAuth
  16. Sign in with Doorman
  17. Beyond the operations

How to read it

This is every generated method of the DoormanInbox client in doorman_inbox: 148 that each send one operation of the API, and 14 that walk the pages of a list. The Python SDK is the guide; this is the list.

The methods are generated from the API's OpenAPI document, and the signatures here are read from the generated client when this documentation is built. Each method names the operation it sends and links to its entry in the API reference, where the fields, the answers and the errors are.

  • A method's path is the operation's id in snake_case: inboxes.rules.create is client.inboxes.rules.create, and apps.rotateSecret is client.apps.rotate_secret.
  • models. in a signature is doorman_inbox.models, the generated types. Dictionaries keep the API's JSON keys, such as displayName and event_id.
  • A method that answers bytes or text says so in its return type. One that answers nothing returns None.
  • A method raises ApiError for an answer of 400 or more.

System

Liveness and this document. No credential.

MethodWhat it does
client.healthHealth check
client.openapiThe OpenAPI document

Account

The account, its plan and usage, and account-wide counts.

MethodWhat it does
client.meWho am I
client.metricsMetrics
client.overviewOverview
client.billing.checkoutStart a checkout
client.billing.portalOpen the billing portal
client.billing.seatsChange the organization's seats
client.billing.syncRead billing again
client.invitations.createInvite someone to the organization
client.invitations.listList the organization's invitations
client.invitations.revokeTake an invitation back
client.invitations.updateRecord that an invitation was sent
client.members.listList the organization's members
client.members.updateChange a member's role
client.organization.adoptMove a personal account into the organization
client.push.getRead notification settings
client.push.subscriptions.createSwitch notifications on for a browser
client.push.subscriptions.deleteSwitch notifications off for a browser

Inboxes

Addresses on the inbox domain: issue, read, rename and delete them.

MethodWhat it does
client.inboxes.createIssue an inbox
client.inboxes.deleteDelete an inbox
client.inboxes.getRead an inbox
client.inboxes.listList inboxes
client.inboxes.iterateWalk every page of the list.
client.inboxes.updateUpdate an inbox
client.inboxes.rules.createCreate an inbound rule
client.inboxes.rules.deleteDelete an inbound rule
client.inboxes.rules.getRead an inbound rule
client.inboxes.rules.listList inbound rules
client.inboxes.rules.runsList rule executions
client.inboxes.rules.iterate_runsWalk every page of the list.
client.inboxes.rules.updateUpdate an inbound rule

Domains

Account-owned mail domains, DNS records, verification and setup.

MethodWhat it does
client.domains.connect_sessionStart automatic DNS setup
client.domains.createAdd a custom domain
client.domains.deleteRemove a custom domain
client.domains.getRead a custom domain
client.domains.listList custom domains
client.domains.verifyCheck the domain's DNS

API keys

Credentials for agents: account-wide keys from the console, inbox-scoped keys from the API.

MethodWhat it does
client.api_keys.createCreate an account key
client.api_keys.getRead an account key
client.api_keys.listList account keys
client.api_keys.revokeRevoke an account key
client.inboxes.keys.createCreate an inbox key
client.inboxes.keys.getRead an inbox key
client.inboxes.keys.listList an inbox's keys
client.inboxes.keys.revokeRevoke an inbox key

Mail

Threads, messages, raw and HTML bodies, attachments and their extracted text.

MethodWhat it does
client.attachments.downloadDownload an attachment
client.attachments.textRead an attachment's text
client.inboxes.messages.listList messages
client.inboxes.messages.iterateWalk every page of the list.
client.inboxes.threads.listList threads
client.inboxes.threads.iterateWalk every page of the list.
client.inboxes.threads.list_by_seenList threads a person has or has not seen
client.inboxes.threads.iterate_list_by_seenWalk every page of the list.
client.messages.getRead a message
client.messages.htmlRead the HTML body
client.messages.rawDownload the original message
client.threads.getRead a thread
client.threads.messagesRead a thread's messages
client.threads.restoreRestore a trashed thread
client.threads.seenMark a thread seen
client.threads.trashTrash a thread
client.threads.updateUpdate a thread

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.

MethodWhat it does
client.inboxes.services.createDeclare or add a service
client.inboxes.sign_ins.createStart a sign-in
client.inboxes.verifications.listRead verification codes
client.passport.getRead passport settings
client.passport.updateUpdate passport settings
client.services.deleteDelete a service
client.services.getRead a service
client.services.listList services
client.services.iterateWalk every page of the list.
client.services.updateUpdate 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.

MethodWhat it does
client.held_sends.approveSend a held send
client.held_sends.discardDiscard a held send
client.held_sends.getRead a held send
client.inboxes.held.listList held messages
client.inboxes.held.iterateWalk every page of the list.
client.inboxes.held_sends.listList held sends
client.inboxes.held_sends.iterateWalk every page of the list.
client.inboxes.security.getRead an inbox's security policy
client.inboxes.security.resetReturn an inbox to the account's security policy
client.inboxes.security.updateGive an inbox its own security policy
client.inboxes.senders.listList an inbox's senders
client.inboxes.senders.iterateWalk every page of the list.
client.messages.discardDiscard a held message
client.messages.feedbackMark a message safe or unsafe
client.messages.releaseRelease a held message
client.security.auditRead the security audit log
client.security.iterate_auditWalk every page of the list.
client.security.getRead the security policy
client.security.previewPreview what a policy does to a message
client.security.updateChange the security policy
client.sender_rules.createTrust or block a sender
client.sender_rules.deleteRemove a sender rule
client.sender_rules.listList sender rules
client.sender_rules.iterateWalk every page of the list.

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.

MethodWhat it does
client.baa.documentRead the agreement
client.baa.getRead the agreement's standing
client.baa.signSign the agreement
client.baa.terminateEnd the agreement
client.guardrails.getRead the guardrails
client.guardrails.previewPreview what the guardrails do to a text
client.guardrails.updateChange the guardrails
client.guardrails.rules.createWrite a custom guardrail
client.guardrails.rules.deleteRemove a custom guardrail
client.guardrails.rules.listList custom guardrails
client.guardrails.rules.updateChange a custom guardrail
client.inboxes.guardrails.getRead an inbox's guardrails
client.inboxes.guardrails.resetReturn an inbox to the account's guardrails
client.inboxes.guardrails.updateGive an inbox its own guardrails
client.messages.originalRead a message as it arrived

Sending

New messages and replies from an inbox, with idempotent retries.

MethodWhat it does
client.drafts.deleteTake a draft back
client.inboxes.sendSend a message or reply
client.inboxes.drafts.createWrite a draft for the owner to send

Webhooks

The inbox webhook, account endpoints, their signed deliveries and the delivery log.

MethodWhat it does
client.deliveries.retryRetry a delivery
client.inboxes.webhook.deleteRemove the inbox webhook
client.inboxes.webhook.deliveriesList the inbox webhook's deliveries
client.inboxes.webhook.iterate_deliveriesWalk every page of the list.
client.inboxes.webhook.getRead the inbox webhook
client.inboxes.webhook.rotate_secretRotate the inbox webhook's secret
client.inboxes.webhook.setSet the inbox webhook
client.webhooks.createCreate an endpoint
client.webhooks.deleteDelete an endpoint
client.webhooks.deliveriesList an endpoint's deliveries
client.webhooks.iterate_deliveriesWalk every page of the list.
client.webhooks.getRead an endpoint
client.webhooks.listList endpoints
client.webhooks.rotate_secretRotate an endpoint's secret
client.webhooks.testSend a test delivery
client.webhooks.updateChange an endpoint

Events

The account's event log: page back through it, or poll it forward.

MethodWhat it does
client.events.getRead an event
client.events.listList or poll events
client.events.iterateWalk every page of the list.

Apps

Developer clients, installed apps and explicit session-bound consent.

MethodWhat it does
client.apps.createRegister an app
client.apps.deleteDelete an app
client.apps.getRead an app
client.apps.listList developer apps
client.apps.rotate_secretRotate a client secret
client.apps.updateUpdate an app
client.installs.listList installed apps
client.installs.revokeRevoke an installation
client.oauth_requests.decideDecide a consent request
client.oauth_requests.getRead a consent request

OAuth

Authorization, token exchange and discovery for scoped third-party apps.

MethodWhat it does
client.oauth.authorizeBegin app authorization
client.oauth.mcp_resourceDiscover the MCP resource
client.oauth.metadataDiscover authorization
client.oauth.registerRegister a public client dynamically
client.oauth.resourceDiscover the API resource
client.oauth.tokenExchange or refresh tokens

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.

MethodWhat it does
client.sign_in.clients.createRegister a relying party
client.sign_in.clients.deleteDelete a relying party
client.sign_in.clients.getRead a relying party
client.sign_in.clients.listList relying parties
client.sign_in.clients.rotate_secretRotate a relying party's secret
client.sign_in.clients.updateUpdate a relying party
client.sign_in.clients.verifyVerify a relying party's host
client.sign_in.links.openOpen a sign-in link
client.sign_in.links.readRead a sign-in link
client.sign_in.requests.decideDecide a sign-in
client.sign_in.requests.getRead a sign-in that waits for the owner
client.sign_in.requests.resumeResume a sign-in

Beyond the operations

  • Client and helpers: What doorman_inbox has besides the generated methods: the client and its arguments, the exceptions, the event stream, webhook verification and the OAuth helpers.

Up Down to move, Enter to open, Esc to close