JSON Lines Handler

Handle webhook events in JSON Lines format

Receive webhook events in JSON Lines format - one JSON object per line.

Set Payload format: JSON Lines in your webhook settings.

Receive events (JSON Lines)

Mailtrap sends a POST request to your webhook URL with events in JSON Lines format.

Each line is a separate JSON object. Parse line by line.

Your endpoint should:

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

Webhook setup guide

Payload
or
Responses
200

Return 200 to acknowledge successful receipt

No content

Payload

Last updated

Was this helpful?