---
title: "Create Webhook"
method: POST
path: "/v0/inboxes/{inbox_id}/webhooks"
tags: ["InboxesWebhooks"]
---

# Create Webhook

`POST /v0/inboxes/{inbox_id}/webhooks`

Create a webhook scoped to this inbox.

**CLI:**
```bash
agentmail inboxes:webhooks create --inbox-id <inbox_id> --url https://example.com/webhook --event-type message.received
```

## Path parameters

- `inbox_id` string, required — The ID of the inbox.

## Request body

- WebhooksCreateInboxWebhookRequest — Create a webhook scoped to an inbox. The inbox comes from the path, so `inbox_ids` and `pod_ids` are not accepted.
  - `url` string, required — URL of webhook endpoint.
  - `event_types` EventType[], required — Event types for which to send events.
  - `client_id` string — Client ID of webhook.

## Response `200`

- WebhooksWebhook
  - `webhook_id` string, required — ID of webhook.
  - `url` string, required — URL of webhook endpoint.
  - `event_types` EventType[] — Event types for which to send events.
  - `pod_ids` string[] — Pods for which to send events. Maximum 10 per webhook.
  - `inbox_ids` string[] — Inboxes for which to send events. Maximum 10 per webhook.
  - `secret` string, required — Secret for webhook signature verification.
  - `enabled` boolean, required — Webhook is enabled.
  - `updated_at` string, date-time, required — Time at which webhook was last updated.
  - `created_at` string, date-time, required — Time at which webhook was created.
  - `client_id` string — Client ID of webhook.

## Other responses

- `400`

## Changes

- **2026-07-15** `394ddcdd9c29` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/inboxes/:inbox_id/webhooks/post.md)

---

[API](https://skmtc.dev/agentmail-to/apis/api.md) · [All operations](https://skmtc.dev/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentmail-to/api/revisions/394ddcdd9c29/schema)
