---
title: "MCP tools: Webhooks"
description: "The tools of the MCP server under Webhooks. The inbox webhook, account endpoints, their signed deliveries and the delivery log."
url: https://doorman.fyi/docs/mcp/tools/webhooks
markdown: https://doorman.fyi/docs/mcp/tools/webhooks.md
area: "SDKs and tools"
section: "MCP server"
---

# MCP tools: Webhooks

The tools of the MCP server under Webhooks. The inbox webhook, account endpoints, their signed deliveries and the delivery log.

Source: https://doorman.fyi/docs/mcp/tools/webhooks

## inboxes_webhook_get

Tool:
```text
inboxes_webhook_get
```

Operation [`inboxes.webhook.get`](https://doorman.fyi/docs/reference/webhooks.md#inboxes-webhook-get): `GET /v1/inboxes/{inboxId}/webhook`

The inbox's webhook URL and its masked secret; both null when the inbox has none. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |

Example call:
```json
{
  "name": "inboxes_webhook_get",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}
```

## inboxes_webhook_set

Tool:
```text
inboxes_webhook_set
```

Operation [`inboxes.webhook.set`](https://doorman.fyi/docs/reference/webhooks.md#inboxes-webhook-set): `PUT /v1/inboxes/{inboxId}/webhook`

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

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: true`, `idempotentHint: false`, `openWorldHint: false`. The tool changes something; can remove something, or replace a secret that stops verifying at once.
- One-time secret: The answer can carry a key's token or a signing secret that is shown once. The server adds a notice to store it now.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `url` (string): An https URL without credentials (http is accepted in local development). Example: `https://agent.example.com/hooks/doorman`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |

Example call:
```json
{
  "name": "inboxes_webhook_set",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "url": "https://agent.example.com/hooks/doorman"
  }
}
```

## inboxes_webhook_rotateSecret

Tool:
```text
inboxes_webhook_rotateSecret
```

Operation [`inboxes.webhook.rotateSecret`](https://doorman.fyi/docs/reference/webhooks.md#inboxes-webhook-rotateSecret): `POST /v1/inboxes/{inboxId}/webhook/rotate-secret`

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

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: true`, `idempotentHint: false`, `openWorldHint: false`. The tool changes something; can remove something, or replace a secret that stops verifying at once.
- One-time secret: The answer can carry a key's token or a signing secret that is shown once. The server adds a notice to store it now.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |

Example call:
```json
{
  "name": "inboxes_webhook_rotateSecret",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}
```

## inboxes_webhook_delete

Tool:
```text
inboxes_webhook_delete
```

Operation [`inboxes.webhook.delete`](https://doorman.fyi/docs/reference/webhooks.md#inboxes-webhook-delete): `DELETE /v1/inboxes/{inboxId}/webhook`

The inbox stops receiving deliveries; its delivery log stays with the events. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: true`, `idempotentHint: true`, `openWorldHint: false`. The tool changes something; can remove something, or replace a secret that stops verifying at once; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |

Example call:
```json
{
  "name": "inboxes_webhook_delete",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}
```

## inboxes_webhook_deliveries

Tool:
```text
inboxes_webhook_deliveries
```

Operation [`inboxes.webhook.deliveries`](https://doorman.fyi/docs/reference/webhooks.md#inboxes-webhook-deliveries): `GET /v1/inboxes/{inboxId}/webhook/deliveries`

The inbox webhook's delivery log, newest first, including deliveries to URLs the inbox no longer points at. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `limit` (integer, optional): Page size, 1 to 100. Defaults to 50.
- `cursor` (string, optional): The delivery id to continue from, from the previous page's `nextCursor`. Example: `whd_01jc5f1a2b3c4d5e6f7g8h9j0k`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |
| `limit` | the query parameter `limit` |
| `cursor` | the query parameter `cursor` |

Example call:
```json
{
  "name": "inboxes_webhook_deliveries",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}
```

## webhooks_list

Tool:
```text
webhooks_list
```

Operation [`webhooks.list`](https://doorman.fyi/docs/reference/webhooks.md#webhooks-list): `GET /v1/webhooks`

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: requires webhooks:manage, events:read, mail:read.

- Offered to: A connected agent with an approval that covers `webhooks:manage` and `events:read` and `mail:read`. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

The tool takes no input.

Example call:
```json
{
  "name": "webhooks_list",
  "arguments": {}
}
```

## webhooks_create

Tool:
```text
webhooks_create
```

Operation [`webhooks.create`](https://doorman.fyi/docs/reference/webhooks.md#webhooks-create): `POST /v1/webhooks`

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: requires webhooks:manage, events:read, mail:read.

- Offered to: A connected agent with an approval that covers `webhooks:manage` and `events:read` and `mail:read`. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: false`, `openWorldHint: false`. The tool changes something.
- One-time secret: The answer can carry a key's token or a signing secret that is shown once. The server adds a notice to store it now.

**Input**
- `name` (string, optional): A label, at most 100 characters. Example: `Orchestrator`
- `url` (string): 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.
- `inboxIds` (string[], optional): Ids of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example: `["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]`
- `enabled` (boolean, optional): Whether deliveries start right away. Defaults to true.

Example call:
```json
{
  "name": "webhooks_create",
  "arguments": {
    "name": "Orchestrator",
    "url": "https://agent.example.com/hooks/doorman",
    "eventTypes": [
      "message.received"
    ],
    "inboxIds": [],
    "enabled": true
  }
}
```

## webhooks_get

Tool:
```text
webhooks_get
```

Operation [`webhooks.get`](https://doorman.fyi/docs/reference/webhooks.md#webhooks-get): `GET /v1/webhooks/{endpointId}`

One endpoint with its newest delivery. OAuth: requires webhooks:manage, events:read, mail:read.

- Offered to: A connected agent with an approval that covers `webhooks:manage` and `events:read` and `mail:read`. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `endpointId` (string): The endpoint. Example: `whk_01jc5d1a2b3c4d5e6f7g8h9j0k`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `endpointId` | the path parameter `endpointId` |

Example call:
```json
{
  "name": "webhooks_get",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
  }
}
```

## webhooks_update

Tool:
```text
webhooks_update
```

Operation [`webhooks.update`](https://doorman.fyi/docs/reference/webhooks.md#webhooks-update): `PATCH /v1/webhooks/{endpointId}`

Any of the fields; the ones left out stay as they are. A disabled endpoint receives nothing until it is enabled again. OAuth: requires webhooks:manage, events:read, mail:read.

- Offered to: A connected agent with an approval that covers `webhooks:manage` and `events:read` and `mail:read`. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool changes something; calling it again with the same input has no further effect.

**Input**
- `endpointId` (string): The endpoint. Example: `whk_01jc5d1a2b3c4d5e6f7g8h9j0k`
- `name` (string, optional): A label, at most 100 characters. Example: `Orchestrator`
- `url` (string, optional): 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.
- `inboxIds` (string[], optional): Ids of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example: `["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]`
- `enabled` (boolean, optional): Whether deliveries start right away. Defaults to true.

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `endpointId` | the path parameter `endpointId` |

Example call:
```json
{
  "name": "webhooks_update",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
    "enabled": false
  }
}
```

## webhooks_delete

Tool:
```text
webhooks_delete
```

Operation [`webhooks.delete`](https://doorman.fyi/docs/reference/webhooks.md#webhooks-delete): `DELETE /v1/webhooks/{endpointId}`

Removes the endpoint. Its delivery log stays with the events, and a delivery still queued for it fails as `target_unavailable`. OAuth: requires webhooks:manage, events:read, mail:read.

- Offered to: A connected agent with an approval that covers `webhooks:manage` and `events:read` and `mail:read`. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: true`, `idempotentHint: true`, `openWorldHint: false`. The tool changes something; can remove something, or replace a secret that stops verifying at once; calling it again with the same input has no further effect.

**Input**
- `endpointId` (string): The endpoint. Example: `whk_01jc5d1a2b3c4d5e6f7g8h9j0k`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `endpointId` | the path parameter `endpointId` |

Example call:
```json
{
  "name": "webhooks_delete",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
  }
}
```

## webhooks_rotateSecret

Tool:
```text
webhooks_rotateSecret
```

Operation [`webhooks.rotateSecret`](https://doorman.fyi/docs/reference/webhooks.md#webhooks-rotateSecret): `POST /v1/webhooks/{endpointId}/rotate-secret`

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: requires webhooks:manage, events:read, mail:read.

- Offered to: A connected agent with an approval that covers `webhooks:manage` and `events:read` and `mail:read`. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: true`, `idempotentHint: false`, `openWorldHint: false`. The tool changes something; can remove something, or replace a secret that stops verifying at once.
- One-time secret: The answer can carry a key's token or a signing secret that is shown once. The server adds a notice to store it now.

**Input**
- `endpointId` (string): The endpoint. Example: `whk_01jc5d1a2b3c4d5e6f7g8h9j0k`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `endpointId` | the path parameter `endpointId` |

Example call:
```json
{
  "name": "webhooks_rotateSecret",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
  }
}
```

## webhooks_test

Tool:
```text
webhooks_test
```

Operation [`webhooks.test`](https://doorman.fyi/docs/reference/webhooks.md#webhooks-test): `POST /v1/webhooks/{endpointId}/test`

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: requires webhooks:manage, events:read, mail:read.

- Offered to: A connected agent with an approval that covers `webhooks:manage` and `events:read` and `mail:read`. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: false`, `openWorldHint: true`. The tool changes something; reaches outside the account: it sends mail or posts to a URL.

**Input**
- `endpointId` (string): The endpoint. Example: `whk_01jc5d1a2b3c4d5e6f7g8h9j0k`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `endpointId` | the path parameter `endpointId` |

Example call:
```json
{
  "name": "webhooks_test",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
  }
}
```

## webhooks_deliveries

Tool:
```text
webhooks_deliveries
```

Operation [`webhooks.deliveries`](https://doorman.fyi/docs/reference/webhooks.md#webhooks-deliveries): `GET /v1/webhooks/{endpointId}/deliveries`

The endpoint's delivery log, newest first. OAuth: requires webhooks:manage, events:read, mail:read.

- Offered to: A connected agent with an approval that covers `webhooks:manage` and `events:read` and `mail:read`. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `endpointId` (string): The endpoint. Example: `whk_01jc5d1a2b3c4d5e6f7g8h9j0k`
- `limit` (integer, optional): Page size, 1 to 100. Defaults to 50.
- `cursor` (string, optional): The delivery id to continue from, from the previous page's `nextCursor`. Example: `whd_01jc5f1a2b3c4d5e6f7g8h9j0k`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `endpointId` | the path parameter `endpointId` |
| `limit` | the query parameter `limit` |
| `cursor` | the query parameter `cursor` |

Example call:
```json
{
  "name": "webhooks_deliveries",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
  }
}
```

## deliveries_retry

Tool:
```text
deliveries_retry
```

Operation [`deliveries.retry`](https://doorman.fyi/docs/reference/webhooks.md#deliveries-retry): `POST /v1/deliveries/{deliveryId}/retry`

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: requires webhooks:manage, events:read, mail:read.

- Offered to: A connected agent with an approval that covers `webhooks:manage` and `events:read` and `mail:read`. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: false`, `openWorldHint: true`. The tool changes something; reaches outside the account: it sends mail or posts to a URL.

**Input**
- `deliveryId` (string): The delivery. Example: `whd_01jc5f1a2b3c4d5e6f7g8h9j0k`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `deliveryId` | the path parameter `deliveryId` |

Example call:
```json
{
  "name": "deliveries_retry",
  "arguments": {
    "deliveryId": "whd_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}
```
