This is an old revision of the document!
When a Contact unsubscribes, you can have Sentori pass this information on to an external system, such as your CRM system, to keep everything in sync.
To use this feature, set the Contact Unsubscribe Webhook for your account by signing in to Sentori then going to the Settings menu and choosing API.
This is how Sentori structures its request to your external system when a Contact unsubscribes:
Content-Type | application/json |
AccountExternalID | The External ID of the Account the Contact has unsubscribed from. |
EmailAddress | The email address of the Contact that has unsubscribed. |
Type | The string “unsubscribe”. |
vhash | A hashed value used to confirm it's a genuine notification from Sentori. |
To confirm the request is genuine, not from another system impersonating Sentori, perform the following operation.
If the result matches the “vhash” value in the request, it's genuine.
POST [your webhook url] HTTP/1.1 Content-Type: application/json User-Agent: Sentori API Content-Length: 165 { "AccountExternalID":"1234ABCD", "EmailAddress":"user@example.com", "Type":"unsubscribe", "vhash":"49D0648E0A7A1C25E94405575B03BA3625A969589" }