# Get a webhook

Source: https://ampost.io/docs/api/webhooks-get · Full reference: https://ampost.io/llms-full.txt

`GET /api/webhooks/endpoints/{webhookId}` · MCP tool `webhooks_get` · scope `webhooks:write` · rate limit `apiRead` · success `200`

Get one webhook by id with its `url`, `events`, `enabled` state, `disabledReason` and failure count. The secret shows only as `secretPreview`. Use it to check why a webhook stopped; use webhooks_list to find webhooks, and webhooks_deliveries_list for the delivery log. 404 WEBHOOK_NOT_FOUND for an id that is not yours. Webhooks see every platform set, so keys restricted to some sets get 403 PLATFORM_SET_NOT_ALLOWED.

| Field | In | Type | Required | Description |
|---|---|---|---|---|
| `webhookId` | path | string | yes | Webhook id (UUID): `id` from webhooks_list or webhooks_create |

Example response:

```json
{
  "id": "d3a7c1e9-5b2f-4a8d-9e6c-7f1b3d5a9c21",
  "url": "https://example.com/ampost/webhooks",
  "description": "Production receiver",
  "events": [
    "post.published",
    "post.partial",
    "post.failed",
    "account.needs_reconnect"
  ],
  "secretPreview": "whsec_…nM8q",
  "enabled": true,
  "disabledReason": null,
  "disabledAt": null,
  "consecutiveFailures": 0,
  "lastDeliveryAt": "2026-10-08T15:00:01.000Z",
  "lastSuccessAt": "2026-10-08T15:00:01.000Z",
  "createdAt": "2026-10-01T09:00:00.000Z",
  "updatedAt": "2026-10-01T09:00:00.000Z"
}
```
