MepMail Docs
API referenceEndpointsWebhooks

Create a webhook

POST
/webhooks

Registers an endpoint for the chosen events and returns its signing secret.

AuthorizationBearer <token>

An API key from the dashboard (ms_…), sent as Authorization: Bearer. A sending-only key reaches the /emails routes only.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/webhooks" \  -H "Content-Type: application/json" \  -d '{    "endpoint": "https://example.com/webhooks/mepmail",    "events": [      "email.delivered",      "email.bounced"    ]  }'
{  "object": "webhook",  "id": "ae2014de-c168-4c61-8267-70d2662a1ce1",  "signing_secret": "signing secret"}