Senlo
API reference

Groundmail webhook

POST
/api/webhooks/groundmail

Paste this URL into a Groundmail webhook endpoint and save the endpoint's whsec_ secret as the webhook secret on the provider in Senlo. Senlo checks the Groundmail-Signature header (HMAC-SHA256 of <timestamp>.<raw body>, timestamp within 5 minutes) and applies email.delivered, email.bounced, email.complained and hard email.failed events. A block bounce (the receiving server refused the sender, not the address) and other events are acknowledged and ignored.

Header Parameters

Groundmail-Signature*string

t=<unix seconds>,v1=<hex HMAC-SHA256>, keyed with the webhook secret saved on the Groundmail provider in Senlo.

Request Body

The event exactly as Groundmail sends it.

application/json
  1. body

Response Body

Accepted. Also returned for events Senlo ignores, so the provider stops retrying.

application/json
  1. response
success?boolean
Example Request
curl -X POST 'https://senlo.io/api/webhooks/groundmail' \  -H 'Groundmail-Signature: string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "success": true}