Email unsubscribed
Sent when a recipient unsubscribes from marketing email or a mailing list using an email’s “Unsubscribe” link. A contact.unsubscribed or contact.mailingList.unsubscribed event will also be sent depending on whether the email was sent to a mailing list. Not available for transactional emails because unsubscribe links are not included for transactional emails. Contains sourceType and the related campaignId or loopId (workflow ID), plus contactIdentity and email objects.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Unique message ID. Use to deduplicate deliveries.
Unix timestamp of when the message was sent.
HMAC signature for verifying the request. Verify using your endpoint signing secret from the Loops dashboard.
Body
"email.unsubscribed"Unix timestamp in seconds.
"1.0.0"The type of email this event relates to. Workflow emails use loop. Not available for transactional emails.
loop, campaign The ID of the campaign if sourceType is campaign.
The ID of the workflow if sourceType is loop.
Response
Webhook received successfully. Return any 2xx status code to acknowledge delivery.

