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 pathrequired

    The 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 | nullrequired

    Null when the inbox has no webhook.

  • secretstring | nullrequired

    The signing secret, masked after creation (whsec_... and the last four characters).

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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

{
  "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"

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 pathrequired

    The 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.

  • urlstringrequired

    An 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.

  • urlstringrequired

  • secretstringrequired

    A Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example: whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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

{
  "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"
  }'

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 pathrequired

    The 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.

  • urlstringrequired

  • secretstringrequired

    A Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example: whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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.
409no_webhookThe inbox has no webhook to rotate a secret for.
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

{
  "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"

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 pathrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z.

Answers 204: Removed.

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

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 pathrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z.

  • limitinteger, in queryoptional

    Page size, 1 to 100. Defaults to 50.

  • cursorstring, in queryoptional

    The 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[]required

  • nextCursorstring | nullrequired

    Pass as cursor for the next page; null on the last page.

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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.
curl -s "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/webhook/deliveries" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

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.

Response 200: EndpointList

The account's endpoints, oldest first.

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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/webhooks" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

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.

  • namestringoptional

    A label, at most 100 characters. Example: Orchestrator

  • urlstringrequired

    An https URL without credentials (http is accepted in local development). Example: https://agent.example.com/hooks/doorman

  • eventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optional

    Event types to receive; empty or absent means all.

  • inboxIdsstring[]optional

    Ids of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example: ["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]

  • enabledbooleanoptional

    Whether 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.

  • idstringrequired

    A webhook endpoint identifier. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

  • installationIdstringoptional

    Present for an installation-owned endpoint. Revocation stops delivery. Example: ins_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

    A label, possibly empty. Example: Orchestrator

  • urlstringrequired

    Example: https://agent.example.com/hooks/doorman

  • eventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]required

    The event types it receives; empty means all.

  • inboxIdsstring[]required

    The inboxes it receives for; empty means all.

  • enabledbooleanrequired

    A disabled endpoint receives nothing until it is enabled again.

  • createdAtstring (date-time)required

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

  • updatedAtstring (date-time)required

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

  • lastDeliveryLastDelivery | nullrequired

  • secretstringrequired

    A Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example: whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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.

Example 201 response

{
  "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
  }'

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 pathrequired

    The 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.

  • idstringrequired

    A webhook endpoint identifier. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

  • installationIdstringoptional

    Present for an installation-owned endpoint. Revocation stops delivery. Example: ins_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

    A label, possibly empty. Example: Orchestrator

  • urlstringrequired

    Example: https://agent.example.com/hooks/doorman

  • eventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]required

    The event types it receives; empty means all.

  • inboxIdsstring[]required

    The inboxes it receives for; empty means all.

  • enabledbooleanrequired

    A disabled endpoint receives nothing until it is enabled again.

  • createdAtstring (date-time)required

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

  • updatedAtstring (date-time)required

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

  • lastDeliveryLastDelivery | nullrequired

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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": "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"

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 pathrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k.

Request body (application/json): UpdateEndpoint

Changes to an endpoint; fields left out stay as they are.

  • namestringoptional

    A label, at most 100 characters. Example: Orchestrator

  • urlstringoptional

    An https URL without credentials (http is accepted in local development). Example: https://agent.example.com/hooks/doorman

  • eventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optional

    Event types to receive; empty or absent means all.

  • inboxIdsstring[]optional

    Ids of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example: ["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]

  • enabledbooleanoptional

    Whether 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.

  • idstringrequired

    A webhook endpoint identifier. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

  • installationIdstringoptional

    Present for an installation-owned endpoint. Revocation stops delivery. Example: ins_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

    A label, possibly empty. Example: Orchestrator

  • urlstringrequired

    Example: https://agent.example.com/hooks/doorman

  • eventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]required

    The event types it receives; empty means all.

  • inboxIdsstring[]required

    The inboxes it receives for; empty means all.

  • enabledbooleanrequired

    A disabled endpoint receives nothing until it is enabled again.

  • createdAtstring (date-time)required

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

  • updatedAtstring (date-time)required

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

  • lastDeliveryLastDelivery | 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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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": "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
  }'

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 pathrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k.

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

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 pathrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k.

Answers 200: The new secret.

Response 200: EndpointSecret

An endpoint's new signing secret, shown once.

  • idstringrequired

    A webhook endpoint identifier. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

  • secretstringrequired

    A Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example: whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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": "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"

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 pathrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k.

Answers 200: What the URL answered.

Response 200: EndpointTestResult

What happened to one signed test delivery.

  • okbooleanrequired

    Whether the URL answered 2xx in time.

  • statusCodeinteger | nullrequired

    The HTTP status, or null when the request did not complete.

  • errorstring | nullrequired

    HTTP <status>, timeout or network_error; null on success.

  • durationMsintegerrequired

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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

{
  "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"

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 pathrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k.

  • limitinteger, in queryoptional

    Page size, 1 to 100. Defaults to 50.

  • cursorstring, in queryoptional

    The 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[]required

  • nextCursorstring | nullrequired

    Pass as cursor for the next page; null on the last page.

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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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.
curl -s "https://api.doorman.fyi/v1/webhooks/whk_01jc5d1a2b3c4d5e6f7g8h9j0k/deliveries" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

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 pathrequired

    The delivery. Example: whd_01jc5f1a2b3c4d5e6f7g8h9j0k.

Answers 202: The delivery, now pending.

Response 202: Delivery

One event sent to one target, with every attempt's outcome.

  • idstringrequired

    A webhook delivery identifier. Example: whd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • eventIdstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • targetobjectrequired

  • kind"inbox" | "endpoint"required

    inbox for the inbox webhook, endpoint for an account endpoint.

  • idstringrequired

    The inbox id or the endpoint id.

  • urlstringrequired

    The URL at the time of delivery.

  • status"pending" | "delivered" | "failed"required

  • attemptsintegerrequired

  • lastStatusCodeinteger | nullrequired

  • lastErrorstring | nullrequired

    HTTP <status>, timeout, network_error or target_unavailable.

  • 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.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
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.
409delivery_pendingThe delivery is already queued; wait for the attempt to finish.
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 202 response

{
  "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"

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