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.
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
Payload
or
Responses
200
Return 200 to acknowledge successful receipt
No content
500
Any other status triggers retry (40 retries every 5 min)
Payload
Last updated
Was this helpful?

