Apps

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

List developer apps

GET/v1/apps

Access session: a console session only; an API key gets 403 session_required.

The signed-in developer's active clients. Unowned dynamic registrations are not included.

OAuth: not available to delegated app tokens.

Also available as client.apps.list in TypeScript, client.apps.list in Python and doorman apps list on the command line.

Organizations: every member's console session may call it. See Roles and permissions.

Answers 200: The apps.

Response 200: AppList

The developer's registered apps.

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s "https://api.doorman.fyi/v1/apps" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Register an app

POST/v1/apps

Access session: a console session only; an API key gets 403 session_required.

Register exact redirect URIs and allowed scopes. Confidential clients receive a client secret once. Public clients still require S256 PKCE.

OAuth: not available to delegated app tokens.

Also available as client.apps.create in TypeScript, client.apps.create in Python and doorman apps create on the command line.

Organizations: a member's console session needs apps:manage. See Roles and permissions.

Request body (application/json): CreateApp

Register a client. Confidential clients receive a one-time secret; every client uses S256 PKCE.

  • namestringrequired

  • redirectUrisstring[]required

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • tokenEndpointAuthMethod"none" | "client_secret_post"optional

Answers 201: The app and its one-time secret, if any.

Response 201: CreatedApp

The client and, for confidential clients only, its secret shown once.

  • idstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • redirectUrisstring[]required

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • tokenEndpointAuthMethod"none" | "client_secret_post"required

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • clientSecretstring | nullrequired

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
409limit_reachedThe abuse ceiling for inboxes, custom domains, keys, endpoints, services, relying parties, the services an address signs in to, the sends an inbox has waiting for its owner or the invitations an organization has open; delete, revoke or decide one first.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s -X POST "https://api.doorman.fyi/v1/apps" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "name": "Mail triage",
    "redirectUris": [
      "https://agent.example.com/callback"
    ],
    "scopes": [
      "mail:read"
    ]
  }'

Read an app

GET/v1/apps/{appId}

Access session: a console session only; an API key gets 403 session_required.

One client owned by this developer, never its secret.

OAuth: not available to delegated app tokens.

Also available as client.apps.get in TypeScript, client.apps.get in Python and doorman apps get on the command line.

Organizations: every member's console session may call it. See Roles and permissions.

Parameters
  • appIdstring, in pathrequired

    The developer's client. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k.

Answers 200: The app.

Response 200: App

A registered client without its secret. A display name is not evidence of a verified developer.

  • idstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • redirectUrisstring[]required

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • tokenEndpointAuthMethod"none" | "client_secret_post"required

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "id": "app_01jc5f1a2b3c4d5e6f7g8h9j0k",
  "name": "Mail triage",
  "redirectUris": [
    "https://agent.example.com/callback"
  ],
  "scopes": [
    "mail:read"
  ],
  "tokenEndpointAuthMethod": "none",
  "status": "active",
  "createdAt": "2026-11-05T10:05:00.000Z",
  "updatedAt": "2026-11-05T10:05:00.000Z"
}
curl -s "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Update an app

PATCH/v1/apps/{appId}

Access session: a console session only; an API key gets 403 session_required.

Replace supplied client metadata. Existing installations and pending authorization requests are invalidated.

OAuth: not available to delegated app tokens.

Also available as client.apps.update in TypeScript, client.apps.update in Python and doorman apps update on the command line.

Organizations: a member's console session needs apps:manage. See Roles and permissions.

Parameters
  • appIdstring, in pathrequired

    The developer's client. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k.

Request body (application/json): UpdateApp

Replace supplied fields. Every edit invalidates pending consent and existing installations.

  • namestringoptional

  • redirectUrisstring[]optional

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]optional

Answers 200: The updated app.

Response 200: App

A registered client without its secret. A display name is not evidence of a verified developer.

  • idstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • redirectUrisstring[]required

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • tokenEndpointAuthMethod"none" | "client_secret_post"required

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "id": "app_01jc5f1a2b3c4d5e6f7g8h9j0k",
  "name": "Mail triage",
  "redirectUris": [
    "https://agent.example.com/callback"
  ],
  "scopes": [
    "mail:read"
  ],
  "tokenEndpointAuthMethod": "none",
  "status": "active",
  "createdAt": "2026-11-05T10:05:00.000Z",
  "updatedAt": "2026-11-05T10:05:00.000Z"
}
curl -s -X PATCH "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "name": "Mail review"
  }'

Delete an app

DELETE/v1/apps/{appId}

Access session: a console session only; an API key gets 403 session_required.

Disable the client and revoke every installation. Stored history is retained.

OAuth: not available to delegated app tokens.

Also available as client.apps.delete in TypeScript, client.apps.delete in Python and doorman apps delete on the command line.

Organizations: a member's console session needs apps:manage. See Roles and permissions.

Parameters
  • appIdstring, in pathrequired

    The developer's client. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k.

Answers 204: Deleted.

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s -X DELETE "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Rotate a client secret

POST/v1/apps/{appId}/rotate-secret

Access session: a console session only; an API key gets 403 session_required.

Replace a confidential client's secret and revoke its installations. Public clients do not have secrets.

OAuth: not available to delegated app tokens.

Also available as client.apps.rotateSecret in TypeScript, client.apps.rotate_secret in Python and doorman apps rotate-secret on the command line.

Organizations: a member's console session needs apps:manage. See Roles and permissions.

Parameters
  • appIdstring, in pathrequired

    The developer's client. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k.

Answers 200: The secret, shown once.

Response 200: AppSecret

A new client secret, shown once. Existing installations are revoked.

  • idstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • clientSecretstringrequired

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s -X POST "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k/rotate-secret" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

List installed apps

GET/v1/app-installs

Access session: a console session only; an API key gets 403 session_required.

The account's active grants first, then recent revoked grants, newest first within each group. At most 500 entries; all active grants are included.

OAuth: not available to delegated app tokens.

Also available as client.installs.list in TypeScript, client.installs.list in Python and doorman installs list on the command line.

Organizations: every member's console session may call it. See Roles and permissions.

Answers 200: The installations.

Response 200: AppInstallList

The account's active and revoked installations.

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s "https://api.doorman.fyi/v1/app-installs" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Revoke an installation

DELETE/v1/app-installs/{installationId}

Access session: a console session only; an API key gets 403 session_required.

Stop future token, webhook and rule access. Already-sent mail and in-flight network requests cannot be recalled.

OAuth: not available to delegated app tokens.

Also available as client.installs.revoke in TypeScript, client.installs.revoke in Python and doorman installs revoke on the command line.

Organizations: a member's console session needs agents:connect. See Roles and permissions.

Parameters
  • installationIdstring, in pathrequired

    The installation. Example: ins_01jc5f1a2b3c4d5e6f7g8h9j0k.

Answers 204: Revoked.

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s -X DELETE "https://api.doorman.fyi/v1/app-installs/ins_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Read a consent request

GET/v1/oauth/requests/{requestId}

Access session: a console session only; an API key gets 403 session_required.

Bind an unused request to this account and console session and return the requested permissions. This does not approve access.

OAuth: not available to delegated app tokens.

Also available as client.oauthRequests.get in TypeScript and client.oauth_requests.get in Python.

Organizations: a member's console session needs agents:connect. See Roles and permissions.

Parameters
  • requestIdstring, in pathrequired

    The pending consent request.

Answers 200: The session-bound consent request.

Response 200: OAuthConsent

A one-time request bound to the current console session. Approval is never automatic.

  • requestIdstringrequired

  • clientobjectrequired

  • idstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • dynamicbooleanrequired

    The client registered itself. Nothing about it was checked, its name included.

  • metadataUrlstring | nullrequired

    The identity document the client published, when it named itself by one. The host that serves the document was checked; the name is what that host says about itself. Null for a client registered in the console or by itself.

  • redirectUristringrequired

  • resourcestringrequired

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • expiresAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • csrfstringrequired

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s "https://api.doorman.fyi/v1/oauth/requests/{requestId}" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Decide a consent request

POST/v1/oauth/requests/{requestId}

Access session: a console session only; an API key gets 403 session_required.

Approve or deny once, with this request's CSRF value and the same console session. Approval issues a short-lived PKCE-bound code.

OAuth: not available to delegated app tokens.

Also available as client.oauthRequests.decide in TypeScript and client.oauth_requests.decide in Python.

Organizations: a member's console session needs agents:connect. See Roles and permissions.

Parameters
  • requestIdstring, in pathrequired

    The pending consent request.

Request body (application/json): DecideOAuth

An explicit decision for this session-bound request.

  • decision"approve" | "deny"required

  • csrfstringrequired

Answers 200: The validated client redirect.

Response 200: OAuthDecision

The validated redirect carrying state, issuer and a code or access_denied.

  • redirectUrlstringrequired

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409limit_reachedThe abuse ceiling for inboxes, custom domains, keys, endpoints, services, relying parties, the services an address signs in to, the sends an inbox has waiting for its owner or the invitations an organization has open; delete, revoke or decide one first.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s -X POST "https://api.doorman.fyi/v1/oauth/requests/{requestId}" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

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