Webhooks

For each registered webhook, MailDeveloper sends a HTTP POST request to the specified endpoint. The request includes a unique webhook ID. See sample of the request payload below. The request has a 2 second timeout, during which the endpoint should reply with status 200.

{
"webhook_id": "{webhook_id}",
"token": "{token}"
}

Property

Explanation

webhook_id

Unique ID for retrieving webhook contents.

token

A randomly generated token.

After receiving the POST request, the next step is to receive the webhook contents by sending a GET request like below. Note that webhooks expire after 10 minutes, after which their contents can't be fetched anymore.