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.
Errors
| Status | Error | Meaning |
|---|---|---|
| 401 | unauthorized | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | session_invalid | The console session token could not be verified. |
| 401 | session_expired | The console session token has expired. |
| 401 | session_claims_missing | The session token does not carry a verified email address. |
| 403 | session_required | Account 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. |
| 403 | account_suspended | The account is suspended. |
| 403 | account_deleted | The account was deleted. |
| 403 | member_deactivated | The 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. |
| 409 | account_mismatch | The 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. |
| 500 | internal_error | Something went wrong on the server. |
curl -s "https://api.doorman.fyi/v1/apps" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/apps", {
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import os
import requests
response = requests.get(
"https://api.doorman.fyi/v1/apps",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()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.
namestringrequiredredirectUrisstring[]requiredscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredtokenEndpointAuthMethod"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.
idstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredredirectUrisstring[]requiredscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredtokenEndpointAuthMethod"none" | "client_secret_post"requiredstatus"active" | "deleted"requiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZclientSecretstring | nullrequired
Errors
| Status | Error | Meaning |
|---|---|---|
| 400 | validation_error | A field is missing or invalid; the message names it. |
| 401 | unauthorized | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | session_invalid | The console session token could not be verified. |
| 401 | session_expired | The console session token has expired. |
| 401 | session_claims_missing | The session token does not carry a verified email address. |
| 403 | session_required | Account 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. |
| 403 | account_suspended | The account is suspended. |
| 403 | account_deleted | The account was deleted. |
| 403 | permission_denied | The 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. |
| 403 | member_deactivated | The 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. |
| 409 | limit_reached | The 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. |
| 409 | account_mismatch | The 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. |
| 500 | internal_error | Something 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"
]
}'const response = await fetch("https://api.doorman.fyi/v1/apps", {
method: "POST",
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
"content-type": "application/json",
},
redirect: "manual", credentials: "omit",
body: JSON.stringify({
"name": "Mail triage",
"redirectUris": [
"https://agent.example.com/callback"
],
"scopes": [
"mail:read"
]
}),
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import os
import requests
response = requests.post(
"https://api.doorman.fyi/v1/apps",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
json={
"name": "Mail triage",
"redirectUris": ["https://agent.example.com/callback"],
"scopes": ["mail:read"],
},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()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 pathrequiredThe 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.
idstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredredirectUrisstring[]requiredscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredtokenEndpointAuthMethod"none" | "client_secret_post"requiredstatus"active" | "deleted"requiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
Errors
| Status | Error | Meaning |
|---|---|---|
| 401 | unauthorized | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | session_invalid | The console session token could not be verified. |
| 401 | session_expired | The console session token has expired. |
| 401 | session_claims_missing | The session token does not carry a verified email address. |
| 403 | session_required | Account 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. |
| 403 | account_suspended | The account is suspended. |
| 403 | account_deleted | The account was deleted. |
| 403 | member_deactivated | The 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. |
| 404 | not_found | No such resource for this caller, or no such route. |
| 409 | account_mismatch | The 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. |
| 500 | internal_error | Something went wrong on the server. |
{
"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"const response = await fetch("https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k", {
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import os
import requests
response = requests.get(
"https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()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 pathrequiredThe developer's client. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0k.
Request body (application/json): UpdateApp
Replace supplied fields. Every edit invalidates pending consent and existing installations.
namestringoptionalredirectUrisstring[]optionalscopes("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.
idstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredredirectUrisstring[]requiredscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredtokenEndpointAuthMethod"none" | "client_secret_post"requiredstatus"active" | "deleted"requiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
Errors
| Status | Error | Meaning |
|---|---|---|
| 400 | validation_error | A field is missing or invalid; the message names it. |
| 401 | unauthorized | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | session_invalid | The console session token could not be verified. |
| 401 | session_expired | The console session token has expired. |
| 401 | session_claims_missing | The session token does not carry a verified email address. |
| 403 | session_required | Account 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. |
| 403 | account_suspended | The account is suspended. |
| 403 | account_deleted | The account was deleted. |
| 403 | permission_denied | The 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. |
| 403 | member_deactivated | The 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. |
| 404 | not_found | No such resource for this caller, or no such route. |
| 409 | account_mismatch | The 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. |
| 500 | internal_error | Something went wrong on the server. |
{
"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"
}'const response = await fetch("https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k", {
method: "PATCH",
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
"content-type": "application/json",
},
redirect: "manual", credentials: "omit",
body: JSON.stringify({
"name": "Mail review"
}),
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import os
import requests
response = requests.patch(
"https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
json={
"name": "Mail review",
},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()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 pathrequiredThe developer's client. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0k.
Answers 204: Deleted.
Errors
| Status | Error | Meaning |
|---|---|---|
| 401 | unauthorized | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | session_invalid | The console session token could not be verified. |
| 401 | session_expired | The console session token has expired. |
| 401 | session_claims_missing | The session token does not carry a verified email address. |
| 403 | session_required | Account 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. |
| 403 | account_suspended | The account is suspended. |
| 403 | account_deleted | The account was deleted. |
| 403 | permission_denied | The 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. |
| 403 | member_deactivated | The 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. |
| 404 | not_found | No such resource for this caller, or no such route. |
| 409 | account_mismatch | The 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. |
| 500 | internal_error | Something went wrong on the server. |
curl -s -X DELETE "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k", {
method: "DELETE",
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
// 204: nothing to read.import os
import requests
response = requests.delete(
"https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
# 204: nothing to read.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 pathrequiredThe 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.
idstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0kclientSecretstringrequired
Errors
| Status | Error | Meaning |
|---|---|---|
| 400 | validation_error | A field is missing or invalid; the message names it. |
| 401 | unauthorized | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | session_invalid | The console session token could not be verified. |
| 401 | session_expired | The console session token has expired. |
| 401 | session_claims_missing | The session token does not carry a verified email address. |
| 403 | session_required | Account 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. |
| 403 | account_suspended | The account is suspended. |
| 403 | account_deleted | The account was deleted. |
| 403 | permission_denied | The 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. |
| 403 | member_deactivated | The 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. |
| 404 | not_found | No such resource for this caller, or no such route. |
| 409 | account_mismatch | The 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. |
| 500 | internal_error | Something 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"const response = await fetch("https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k/rotate-secret", {
method: "POST",
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import os
import requests
response = requests.post(
"https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k/rotate-secret",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()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.
Errors
| Status | Error | Meaning |
|---|---|---|
| 401 | unauthorized | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | session_invalid | The console session token could not be verified. |
| 401 | session_expired | The console session token has expired. |
| 401 | session_claims_missing | The session token does not carry a verified email address. |
| 403 | session_required | Account 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. |
| 403 | account_suspended | The account is suspended. |
| 403 | account_deleted | The account was deleted. |
| 403 | member_deactivated | The 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. |
| 409 | account_mismatch | The 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. |
| 500 | internal_error | Something went wrong on the server. |
curl -s "https://api.doorman.fyi/v1/app-installs" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/app-installs", {
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import os
import requests
response = requests.get(
"https://api.doorman.fyi/v1/app-installs",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()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 pathrequiredThe installation. Example:
ins_01jc5f1a2b3c4d5e6f7g8h9j0k.
Answers 204: Revoked.
Errors
| Status | Error | Meaning |
|---|---|---|
| 401 | unauthorized | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | session_invalid | The console session token could not be verified. |
| 401 | session_expired | The console session token has expired. |
| 401 | session_claims_missing | The session token does not carry a verified email address. |
| 403 | session_required | Account 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. |
| 403 | account_suspended | The account is suspended. |
| 403 | account_deleted | The account was deleted. |
| 403 | permission_denied | The 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. |
| 403 | member_deactivated | The 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. |
| 404 | not_found | No such resource for this caller, or no such route. |
| 409 | account_mismatch | The 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. |
| 500 | internal_error | Something went wrong on the server. |
curl -s -X DELETE "https://api.doorman.fyi/v1/app-installs/ins_01jc5f1a2b3c4d5e6f7g8h9j0k" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/app-installs/ins_01jc5f1a2b3c4d5e6f7g8h9j0k", {
method: "DELETE",
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
// 204: nothing to read.import os
import requests
response = requests.delete(
"https://api.doorman.fyi/v1/app-installs/ins_01jc5f1a2b3c4d5e6f7g8h9j0k",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
# 204: nothing to read.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 pathrequiredThe 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.
requestIdstringrequiredclientobjectrequiredidstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequireddynamicbooleanrequiredThe client registered itself. Nothing about it was checked, its name included.
metadataUrlstring | nullrequiredThe 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.
redirectUristringrequiredresourcestringrequiredscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredexpiresAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zcsrfstringrequired
Errors
| Status | Error | Meaning |
|---|---|---|
| 401 | unauthorized | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | session_invalid | The console session token could not be verified. |
| 401 | session_expired | The console session token has expired. |
| 401 | session_claims_missing | The session token does not carry a verified email address. |
| 403 | session_required | Account 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. |
| 403 | account_suspended | The account is suspended. |
| 403 | account_deleted | The account was deleted. |
| 403 | permission_denied | The 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. |
| 403 | member_deactivated | The 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. |
| 404 | not_found | No such resource for this caller, or no such route. |
| 409 | account_mismatch | The 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. |
| 500 | internal_error | Something went wrong on the server. |
curl -s "https://api.doorman.fyi/v1/oauth/requests/{requestId}" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/oauth/requests/{requestId}", {
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import os
import requests
response = requests.get(
"https://api.doorman.fyi/v1/oauth/requests/{requestId}",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()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 pathrequiredThe pending consent request.
Request body (application/json): DecideOAuth
An explicit decision for this session-bound request.
decision"approve" | "deny"requiredcsrfstringrequired
Answers 200: The validated client redirect.
Response 200: OAuthDecision
The validated redirect carrying state, issuer and a code or access_denied.
redirectUrlstringrequired
Errors
| Status | Error | Meaning |
|---|---|---|
| 400 | validation_error | A field is missing or invalid; the message names it. |
| 401 | unauthorized | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | session_invalid | The console session token could not be verified. |
| 401 | session_expired | The console session token has expired. |
| 401 | session_claims_missing | The session token does not carry a verified email address. |
| 403 | session_required | Account 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. |
| 403 | account_suspended | The account is suspended. |
| 403 | account_deleted | The account was deleted. |
| 403 | permission_denied | The 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. |
| 403 | member_deactivated | The 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. |
| 404 | not_found | No such resource for this caller, or no such route. |
| 409 | limit_reached | The 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. |
| 409 | account_mismatch | The 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. |
| 500 | internal_error | Something went wrong on the server. |
curl -s -X POST "https://api.doorman.fyi/v1/oauth/requests/{requestId}" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/oauth/requests/{requestId}", {
method: "POST",
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import os
import requests
response = requests.post(
"https://api.doorman.fyi/v1/oauth/requests/{requestId}",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
