Easymailing

Member opened campaign

Webhook event member_campaign_opened

Sent when a member opens an email campaign. first_time is true on the first open of that member.

Sent to marketing webhooks subscribed to this event, for contacts of the webhook audience.

Easymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.

Header Parameters

Easymailing-Webhook-Id*string

Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.

Formatuuid
Easymailing-Webhook-Signature*string

Signature of the request: sha256= followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.

Match^sha256=[0-9a-f]{64}$

Request Body

application/json

Batch of events.

TypeScript Definitions

Use the request body type in TypeScript.

Items1 <= items <= 100
[index: integer]?

Response Body

Example delivery

Easymailing sends this request to the URL of your webhook. Values are placeholders.

POST /easymailing/webhooks HTTP/1.1Host: your-app.example.comContent-Type: application/jsonEasymailing-Webhook-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08Easymailing-Webhook-Signature: sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e[  {    "id": "string",    "date": "2019-08-24T14:15:22Z",    "event_type": "member_campaign_opened",    "event_data": {      "ip": "string",      "email": "string",      "locale": "string",      "opens": 0,      "first_time": true,      "user_agent": {        "code": "string",        "browser_version": "string",        "os_version": "string",        "device_type": "string",        "browser_family": "string",        "device_model": "string",        "device_brand": "string",        "device_family": "string",        "os_family": "string"      },      "location": {        "city": "string",        "postal_code": "string",        "timezone": "string",        "country_code": "string",        "country": "string",        "lat": 0,        "lng": 0      },      "created_at": "2019-08-24T14:15:22Z",      "member": {        "id": "string",        "audience": "string",        "email": "string",        "status": "string",        "source": "string",        "client_ip": "string",        "rating": 0,        "locale": "string",        "phone": "string",        "first_name": "string",        "last_name": "string",        "sms_status": "string",        "sms_opt_in_at": "2019-08-24T14:15:22Z",        "sms_opt_out_at": "2019-08-24T14:15:22Z",        "sms_opt_in_source": "string",        "groups": [          {            "id": "string",            "title": "string",            "description": "string",            "suscriber_count": 0,            "color": "string",            "public": true          }        ],        "custom_fields": [          {            "list_field_id": "string",            "value": null          }        ],        "member_consent": {          "ip": "string",          "consent_at": "2019-08-24T14:15:22Z",          "treatment_purposes": [            {              "id": "string",              "translations": [                "string"              ]            }          ]        },        "location": {          "city": "string",          "postal_code": "string",          "timezone": "string",          "country_code": "string",          "country": "string",          "lat": 0,          "lng": 0        },        "subscribed_at": "2019-08-24T14:15:22Z",        "unsubscribed_at": "2019-08-24T14:15:22Z"      },      "campaign": {        "id": "string",        "audience": "string",        "title": "string",        "type": "string",        "status": "string",        "channel": "email",        "email_config": {          "from_name": "string",          "from_email": "string",          "reply_to": "string",          "enable_to_name": true,          "to_name": "string",          "subject": "string",          "preview_text": "string"        },        "campaign_stats": {          "sent": 0,          "delivered": 0,          "clicks": 0,          "unique_clicks": 0,          "opens": 0,          "unique_opens": 0,          "complaints": 0,          "soft_bounces": 0,          "hard_bounces": 0,          "unsubscriptions": 0,          "delivered_rate": 0,          "open_rate": 0,          "click_rate": 0,          "bounce_rate": 0,          "complaint_rate": 0        },        "template_html": "string",        "send_to": "string",        "template": "string",        "list_segment": "string",        "groups": [          "string"        ],        "created_at": "2019-08-24T14:15:22Z",        "updated_at": "2019-08-24T14:15:22Z"      }    }  }]