Webhooks
The inbox webhook, account endpoints, their signed deliveries and the delivery log.
Read the inbox webhook
GET/v1/inboxes/{inboxId}/webhook
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
The inbox's webhook URL and its masked secret; both null when the inbox has none.
OAuth: not available to delegated app tokens.
Also available as client.inboxes.webhook.get in TypeScript, client.inboxes.webhook.get in Python, the inboxes_webhook_get tool and doorman inboxes webhook get on the command line.
Organizations: every member's console session may call it. See Roles and permissions.
Parameters
inboxIdstring, in pathrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7z.
Answers 200: The webhook.
Response 200: InboxWebhook
The inbox's single webhook: one URL that receives every event for it.
urlstring | nullrequiredNull when the inbox has no webhook.
secretstring | nullrequiredThe signing secret, masked after creation (
whsec_...and the last four characters).
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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. |
{
"url": "https://agent.example.com/hooks/doorman",
"secret": "whsec_...ODk="
}curl -s "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook", {
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/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Set the inbox webhook
PUT/v1/inboxes/{inboxId}/webhook
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
One URL per inbox that receives every event for it. Setting it again replaces the URL and mints a new signing secret, returned once.
OAuth: not available to delegated app tokens.
Also available as client.inboxes.webhook.set in TypeScript, client.inboxes.webhook.set in Python, the inboxes_webhook_set tool and doorman inboxes webhook set on the command line.
Organizations: a member's console session needs webhooks:manage and mail:read. API keys and app tokens are not held to member permissions. See Roles and permissions.
Parameters
inboxIdstring, in pathrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7z.
Request body (application/json): SetInboxWebhook
Where the inbox's events go. Setting it again replaces the URL and mints a new secret.
urlstringrequiredAn https URL without credentials (http is accepted in local development). Example:
https://agent.example.com/hooks/doorman
Answers 200: The webhook with its one-time secret.
Response 200: InboxWebhookSecret
The inbox webhook with its new signing secret, shown once.
urlstringrequiredsecretstringrequiredA Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example:
whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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. |
{
"url": "https://agent.example.com/hooks/doorman",
"secret": "whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk="
}curl -s -X PUT "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook" \
-H "authorization: Bearer $DOORMAN_API_KEY" \
-H "content-type: application/json" \
-d '{
"url": "https://agent.example.com/hooks/doorman"
}'const response = await fetch("https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook", {
method: "PUT",
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
"content-type": "application/json",
},
redirect: "manual", credentials: "omit",
body: JSON.stringify({
"url": "https://agent.example.com/hooks/doorman"
}),
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import os
import requests
response = requests.put(
"https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
json={
"url": "https://agent.example.com/hooks/doorman",
},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Rotate the inbox webhook's secret
POST/v1/inboxes/{inboxId}/webhook/rotate-secret
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Mints a new signing secret and returns it once. Deliveries signed with the old one stop verifying at once, so update the receiver first.
OAuth: not available to delegated app tokens.
Also available as client.inboxes.webhook.rotateSecret in TypeScript, client.inboxes.webhook.rotate_secret in Python, the inboxes_webhook_rotateSecret tool and doorman inboxes webhook rotate-secret on the command line.
Organizations: a member's console session needs webhooks:manage. API keys and app tokens are not held to member permissions. See Roles and permissions.
Parameters
inboxIdstring, in pathrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7z.
Answers 200: The webhook with its new secret.
Response 200: InboxWebhookSecret
The inbox webhook with its new signing secret, shown once.
urlstringrequiredsecretstringrequiredA Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example:
whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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 | no_webhook | The inbox has no webhook to rotate a secret for. |
| 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. |
{
"url": "https://agent.example.com/hooks/doorman",
"secret": "whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk="
}curl -s -X POST "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook/rotate-secret" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook/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/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook/rotate-secret",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Remove the inbox webhook
DELETE/v1/inboxes/{inboxId}/webhook
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
The inbox stops receiving deliveries; its delivery log stays with the events.
OAuth: not available to delegated app tokens.
Also available as client.inboxes.webhook.delete in TypeScript, client.inboxes.webhook.delete in Python, the inboxes_webhook_delete tool and doorman inboxes webhook delete on the command line.
Organizations: a member's console session needs webhooks:manage. API keys and app tokens are not held to member permissions. See Roles and permissions.
Parameters
inboxIdstring, in pathrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7z.
Answers 204: Removed.
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook", {
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/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
# 204: nothing to read.List the inbox webhook's deliveries
GET/v1/inboxes/{inboxId}/webhook/deliveries
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
The inbox webhook's delivery log, newest first, including deliveries to URLs the inbox no longer points at.
OAuth: not available to delegated app tokens.
Also available as client.inboxes.webhook.deliveries in TypeScript, client.inboxes.webhook.deliveries in Python, the inboxes_webhook_deliveries tool and doorman inboxes webhook deliveries on the command line.
Organizations: every member's console session may call it. See Roles and permissions.
Parameters
inboxIdstring, in pathrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7z.limitinteger, in queryoptionalPage size, 1 to 100. Defaults to 50.
cursorstring, in queryoptionalThe delivery id to continue from, from the previous page's
nextCursor. Example:whd_01jc5f1a2b3c4d5e6f7g8h9j0k.
Answers 200: A page of deliveries.
Response 200: DeliveryPage
A target's deliveries, newest first.
dataDelivery[]requirednextCursorstring | nullrequiredPass as
cursorfor the next page; null on the last page.
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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. |
curl -s "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook/deliveries" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook/deliveries", {
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/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook/deliveries",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()List endpoints
GET/v1/webhooks
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
The account's webhook endpoints, oldest first. Each receives the events it subscribes to, for the inboxes it is scoped to, with its own signing secret.
OAuth: allowed with all of webhooks:manage, events:read, mail:read. App permissions apply in addition to account and resource checks.
Also available as client.webhooks.list in TypeScript, client.webhooks.list in Python, the webhooks_list tool and doorman webhooks list on the command line.
Organizations: every member's console session may call it. See Roles and permissions.
Answers 200: The endpoints.
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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/webhooks" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/webhooks", {
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/webhooks",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Create an endpoint
POST/v1/webhooks
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
An https URL without credentials. Empty eventTypes or inboxIds mean all. The signing secret is returned once. An account holds at most 20 endpoints.
OAuth: allowed with all of webhooks:manage, events:read, mail:read. App permissions apply in addition to account and resource checks.
Also available as client.webhooks.create in TypeScript, client.webhooks.create in Python, the webhooks_create tool and doorman webhooks create on the command line.
Organizations: a member's console session needs webhooks:manage and mail:read. API keys and app tokens are not held to member permissions. See Roles and permissions.
Request body (application/json): CreateEndpoint
A new account endpoint.
namestringoptionalA label, at most 100 characters. Example:
OrchestratorurlstringrequiredAn https URL without credentials (http is accepted in local development). Example:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optionalEvent types to receive; empty or absent means all.
inboxIdsstring[]optionalIds of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example:
["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]enabledbooleanoptionalWhether deliveries start right away. Defaults to true.
Answers 201: The endpoint with its one-time secret.
Response 201: CreatedEndpoint
A new endpoint with its signing secret, shown once.
idstringrequiredA webhook endpoint identifier. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0kinstallationIdstringoptionalPresent for an installation-owned endpoint. Revocation stops delivery. Example:
ins_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredA label, possibly empty. Example:
OrchestratorurlstringrequiredExample:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]requiredThe event types it receives; empty means all.
inboxIdsstring[]requiredThe inboxes it receives for; empty means all.
enabledbooleanrequiredA disabled endpoint receives nothing until it is enabled again.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastDeliveryLastDelivery | nullrequiredsecretstringrequiredA Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example:
whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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. |
{
"id": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
"name": "Orchestrator",
"url": "https://agent.example.com/hooks/doorman",
"eventTypes": [
"message.received"
],
"inboxIds": [],
"enabled": true,
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z",
"lastDelivery": null,
"secret": "whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk="
}curl -s -X POST "https://api.doorman.fyi/v1/webhooks" \
-H "authorization: Bearer $DOORMAN_API_KEY" \
-H "content-type: application/json" \
-d '{
"name": "Orchestrator",
"url": "https://agent.example.com/hooks/doorman",
"eventTypes": [
"message.received"
],
"inboxIds": [],
"enabled": true
}'const response = await fetch("https://api.doorman.fyi/v1/webhooks", {
method: "POST",
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
"content-type": "application/json",
},
redirect: "manual", credentials: "omit",
body: JSON.stringify({
"name": "Orchestrator",
"url": "https://agent.example.com/hooks/doorman",
"eventTypes": [
"message.received"
],
"inboxIds": [],
"enabled": true
}),
});
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/webhooks",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
json={
"name": "Orchestrator",
"url": "https://agent.example.com/hooks/doorman",
"eventTypes": ["message.received"],
"inboxIds": [],
"enabled": True,
},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Read an endpoint
GET/v1/webhooks/{endpointId}
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
One endpoint with its newest delivery.
OAuth: allowed with all of webhooks:manage, events:read, mail:read. App permissions apply in addition to account and resource checks.
Also available as client.webhooks.get in TypeScript, client.webhooks.get in Python, the webhooks_get tool and doorman webhooks get on the command line.
Organizations: every member's console session may call it. See Roles and permissions.
Parameters
endpointIdstring, in pathrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0k.
Answers 200: The endpoint.
Response 200: Endpoint
An account webhook endpoint: receives the account's events across inboxes, with its own signing secret.
idstringrequiredA webhook endpoint identifier. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0kinstallationIdstringoptionalPresent for an installation-owned endpoint. Revocation stops delivery. Example:
ins_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredA label, possibly empty. Example:
OrchestratorurlstringrequiredExample:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]requiredThe event types it receives; empty means all.
inboxIdsstring[]requiredThe inboxes it receives for; empty means all.
enabledbooleanrequiredA disabled endpoint receives nothing until it is enabled again.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastDeliveryLastDelivery | nullrequired
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
"name": "Orchestrator",
"url": "https://agent.example.com/hooks/doorman",
"eventTypes": [],
"inboxIds": [],
"enabled": true,
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z",
"lastDelivery": {
"status": "delivered",
"statusCode": 200,
"at": "2026-11-05T10:05:00.000Z"
}
}curl -s "https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k", {
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/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Change an endpoint
PATCH/v1/webhooks/{endpointId}
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Any of the fields; the ones left out stay as they are. A disabled endpoint receives nothing until it is enabled again.
OAuth: allowed with all of webhooks:manage, events:read, mail:read. App permissions apply in addition to account and resource checks.
Also available as client.webhooks.update in TypeScript, client.webhooks.update in Python, the webhooks_update tool and doorman webhooks update on the command line.
Organizations: a member's console session needs webhooks:manage and mail:read. API keys and app tokens are not held to member permissions. See Roles and permissions.
Parameters
endpointIdstring, in pathrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0k.
Request body (application/json): UpdateEndpoint
Changes to an endpoint; fields left out stay as they are.
namestringoptionalA label, at most 100 characters. Example:
OrchestratorurlstringoptionalAn https URL without credentials (http is accepted in local development). Example:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optionalEvent types to receive; empty or absent means all.
inboxIdsstring[]optionalIds of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example:
["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]enabledbooleanoptionalWhether deliveries start right away. Defaults to true.
Answers 200: The endpoint as it is now.
Response 200: Endpoint
An account webhook endpoint: receives the account's events across inboxes, with its own signing secret.
idstringrequiredA webhook endpoint identifier. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0kinstallationIdstringoptionalPresent for an installation-owned endpoint. Revocation stops delivery. Example:
ins_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredA label, possibly empty. Example:
OrchestratorurlstringrequiredExample:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]requiredThe event types it receives; empty means all.
inboxIdsstring[]requiredThe inboxes it receives for; empty means all.
enabledbooleanrequiredA disabled endpoint receives nothing until it is enabled again.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastDeliveryLastDelivery | 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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
"name": "Orchestrator",
"url": "https://agent.example.com/hooks/doorman",
"eventTypes": [],
"inboxIds": [],
"enabled": true,
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z",
"lastDelivery": {
"status": "delivered",
"statusCode": 200,
"at": "2026-11-05T10:05:00.000Z"
}
}curl -s -X PATCH "https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k" \
-H "authorization: Bearer $DOORMAN_API_KEY" \
-H "content-type: application/json" \
-d '{
"enabled": false
}'const response = await fetch("https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k", {
method: "PATCH",
headers: {
authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
"content-type": "application/json",
},
redirect: "manual", credentials: "omit",
body: JSON.stringify({
"enabled": false
}),
});
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/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
json={
"enabled": False,
},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Delete an endpoint
DELETE/v1/webhooks/{endpointId}
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Removes the endpoint. Its delivery log stays with the events, and a delivery still queued for it fails as target_unavailable.
OAuth: allowed with all of webhooks:manage, events:read, mail:read. App permissions apply in addition to account and resource checks.
Also available as client.webhooks.delete in TypeScript, client.webhooks.delete in Python, the webhooks_delete tool and doorman webhooks delete on the command line.
Organizations: a member's console session needs webhooks:manage. API keys and app tokens are not held to member permissions. See Roles and permissions.
Parameters
endpointIdstring, in pathrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0k.
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k", {
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/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
# 204: nothing to read.Rotate an endpoint's secret
POST/v1/webhooks/{endpointId}/rotate-secret
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Mints a new signing secret and returns it once. Deliveries signed with the old one stop verifying at once, so update the receiver first.
OAuth: allowed with all of webhooks:manage, events:read, mail:read. App permissions apply in addition to account and resource checks.
Also available as client.webhooks.rotateSecret in TypeScript, client.webhooks.rotate_secret in Python, the webhooks_rotateSecret tool and doorman webhooks rotate-secret on the command line.
Organizations: a member's console session needs webhooks:manage. API keys and app tokens are not held to member permissions. See Roles and permissions.
Parameters
endpointIdstring, in pathrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0k.
Answers 200: The new secret.
Response 200: EndpointSecret
An endpoint's new signing secret, shown once.
idstringrequiredA webhook endpoint identifier. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0ksecretstringrequiredA Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example:
whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
"secret": "whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk="
}curl -s -X POST "https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k/rotate-secret" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k/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/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k/rotate-secret",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Send a test delivery
POST/v1/webhooks/{endpointId}/test
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
One signed message.received sample with "test": true, fresh identifiers and one of the account's inboxes as the recipient, posted to the URL whether or not the endpoint is enabled. Nothing is stored. Answers after the usual 15 second timeout at most.
OAuth: allowed with all of webhooks:manage, events:read, mail:read. App permissions apply in addition to account and resource checks.
Also available as client.webhooks.test in TypeScript, client.webhooks.test in Python, the webhooks_test tool and doorman webhooks test on the command line.
Organizations: a member's console session needs webhooks:manage. API keys and app tokens are not held to member permissions. See Roles and permissions.
Parameters
endpointIdstring, in pathrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0k.
Answers 200: What the URL answered.
Response 200: EndpointTestResult
What happened to one signed test delivery.
okbooleanrequiredWhether the URL answered 2xx in time.
statusCodeinteger | nullrequiredThe HTTP status, or null when the request did not complete.
errorstring | nullrequiredHTTP <status>,timeoutornetwork_error; null on success.durationMsintegerrequired
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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. |
{
"ok": true,
"statusCode": 200,
"error": null,
"durationMs": 212
}curl -s -X POST "https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k/test" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k/test", {
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/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k/test",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()List an endpoint's deliveries
GET/v1/webhooks/{endpointId}/deliveries
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
The endpoint's delivery log, newest first.
OAuth: allowed with all of webhooks:manage, events:read, mail:read. App permissions apply in addition to account and resource checks.
Also available as client.webhooks.deliveries in TypeScript, client.webhooks.deliveries in Python, the webhooks_deliveries tool and doorman webhooks deliveries on the command line.
Organizations: every member's console session may call it. See Roles and permissions.
Parameters
endpointIdstring, in pathrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0k.limitinteger, in queryoptionalPage size, 1 to 100. Defaults to 50.
cursorstring, in queryoptionalThe delivery id to continue from, from the previous page's
nextCursor. Example:whd_01jc5f1a2b3c4d5e6f7g8h9j0k.
Answers 200: A page of deliveries.
Response 200: DeliveryPage
A target's deliveries, newest first.
dataDelivery[]requirednextCursorstring | nullrequiredPass as
cursorfor the next page; null on the last page.
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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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. |
curl -s "https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k/deliveries" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k/deliveries", {
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/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k/deliveries",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Retry a delivery
POST/v1/deliveries/{deliveryId}/retry
Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Puts a delivered or failed delivery back in the queue. The attempt is numbered after the previous ones: a delivery that used its whole budget gets exactly one more attempt, and one that still had attempts left follows the usual retry schedule from where it was. A retry to a target that was removed or repointed since fails as target_unavailable.
OAuth: allowed with all of webhooks:manage, events:read, mail:read. App permissions apply in addition to account and resource checks.
Also available as client.deliveries.retry in TypeScript, client.deliveries.retry in Python, the deliveries_retry tool and doorman deliveries retry on the command line.
Organizations: a member's console session needs webhooks:manage. API keys and app tokens are not held to member permissions. See Roles and permissions.
Parameters
deliveryIdstring, in pathrequiredThe delivery. Example:
whd_01jc5f1a2b3c4d5e6f7g8h9j0k.
Answers 202: The delivery, now pending.
Response 202: Delivery
One event sent to one target, with every attempt's outcome.
idstringrequiredA webhook delivery identifier. Example:
whd_01jc5f1a2b3c4d5e6f7g8h9j0keventIdstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4rtargetobjectrequiredkind"inbox" | "endpoint"requiredinboxfor the inbox webhook,endpointfor an account endpoint.idstringrequiredThe inbox id or the endpoint id.
urlstringrequiredThe URL at the time of delivery.
status"pending" | "delivered" | "failed"requiredattemptsintegerrequiredlastStatusCodeinteger | nullrequiredlastErrorstring | nullrequiredHTTP <status>,timeout,network_errorortarget_unavailable.createdAtstring (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 | forbidden | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | insufficient_scope | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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 | delivery_pending | The delivery is already queued; wait for the attempt to finish. |
| 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": "whd_01jc5f1a2b3c4d5e6f7g8h9j0k",
"eventId": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"target": {
"kind": "endpoint",
"id": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
},
"url": "https://agent.example.com/hooks/doorman",
"status": "delivered",
"attempts": 1,
"lastStatusCode": 200,
"lastError": null,
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z"
}curl -s -X POST "https://api.doorman.fyi/v1/deliveries/whd_01jc5f1a2b3c4d5e6f7g8h9j0k/retry" \
-H "authorization: Bearer $DOORMAN_API_KEY"const response = await fetch("https://api.doorman.fyi/v1/deliveries/whd_01jc5f1a2b3c4d5e6f7g8h9j0k/retry", {
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/deliveries/whd_01jc5f1a2b3c4d5e6f7g8h9j0k/retry",
headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
