# Send a test event

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

`POST /api/webhooks/endpoints/{webhookId}/test` · MCP tool `webhooks_test` · scope `webhooks:write` · rate limit `createPost` · success `200`

Send a signed `webhook.test` event to the webhook now, also when it is turned off, and return the delivery with your URL's response (status code and body). One attempt, no retries. Use it to check the URL and signature handling; to resend a real past event, use webhooks_redeliver. 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": "9f4b2e6d-8a1c-4d3e-b5f7-3c9a1e7d5b02",
  "webhookId": "d3a7c1e9-5b2f-4a8d-9e6c-7f1b3d5a9c21",
  "eventId": "2c8e4a6f-1b3d-4f5a-9e7c-8d2b4f6a1c35",
  "eventType": "post.published",
  "status": "succeeded",
  "attempts": 1,
  "maxAttempts": 1,
  "nextAttemptAt": null,
  "lastAttemptAt": "2026-10-08T15:00:01.000Z",
  "responseStatus": 200,
  "responseBody": "ok",
  "error": null,
  "durationMs": 84,
  "redeliveryOf": null,
  "payload": {
    "id": "2c8e4a6f-1b3d-4f5a-9e7c-8d2b4f6a1c35",
    "type": "post.published",
    "createdAt": "2026-10-08T15:00:00.000Z",
    "data": {
      "post": {
        "id": "7f1c2a9e-4b1d-4c55-9a0e-2f6d8b3c1a10",
        "status": "published",
        "metadata": {
          "campaignId": "launch-2026"
        }
      }
    }
  },
  "createdAt": "2026-10-08T15:00:00.000Z"
}
```
