JSON Handler

Handle webhook events in JSON format

Receive webhook events as a JSON object containing an array of events.

Set Payload format: JSON in your webhook settings.

Receive events (JSON)

Mailtrap sends a POST request to your webhook URL with events as a JSON object.

Your endpoint should:

  • Accept Content-Type: application/json
  • Return HTTP 200 to acknowledge receipt
  • Process events asynchronously

Webhook setup guide

Payload
Responses
200

Return 200 to acknowledge successful receipt

No content

Payload

Last updated

Was this helpful?