Send a test event
Deliver a fake email.delivered event to one webhook, to check your endpoint.
/v1/webhooks/{id}/testAPI keyQueues one synthetic email.delivered event for this webhook only. It is sent even if the webhook is not subscribed to email.delivered. The request is signed with the webhook's secret like a real one, so you can test your signature check.
The payload has data.test: true and made-up values (emailId: "email_test", recipient: "recipient@example.com"), so your handler can tell it apart from real events. Its event ID starts with evt_test_.
The response comes back before the delivery happens. Check the result with List deliveries. A failed test delivery is retried on the same schedule as real ones (see Retries).
Path parameters
The webhook ID.
Response
Status 202.
The ID of the queued delivery, for example whd_01K6B4F2H6K8M0P2R4T6V8X0Z2.
Errors
| Status | Code | When |
|---|---|---|
| 404 | webhook_not_found | No webhook with this ID in the project. |
| 409 | webhook_disabled | The webhook is disabled. Enable it first. |