Skip to main content

Hello guys.

I was wondering how can I send unsubscribe links with emails I send with the API (create conversation) I've tried few things:

  1. Add {{ unsubscribe_link }} to the email but I got back an error: "there is no variable called 'unsubscribe_link'"
  2. Create the unsubscribe link myself but I noticed that in order to do so I most modify the conversation id, and unfortunately I only manage to get it after I send the message.
  3. Change template - tried to create a custom template with the unsubscribe button but it seems like the create message API doesn't support any other template besides "plain" and "personal".
  4. Add unsubscribe button to all mails by default - couldn't find any setting like this

 

Any suggestions?

Best, Tomer.

Hello @tomer​ , As far as I know, unsubscribe links only appear in e-mails sent from outgoing campaigns. 

 

Unfortunately, there is no way to create an outgoing e-mail campaign from API, it's only available in the Intercom web interface.

 

Here some workaround:

1) You can build a script and include this URL in the e-mails.

2) Once the user clicks these links: https://example.com/unsubscribe/userid?key/p>

3) Update user parameter via API "unsubscribed_from_emails=true"

 

Hopes this helps.


Reply