Table of Contents

How to Let Users Opt-Out of Your WhatsApp Messages via API

Abby Updated by Abby

In the case that a user wants to opt-out we can send an API request to the opt-out endpoint

In order to do this we must use a third-party as it's not possible to use the Landbot API from inside of Landbot

Here are some examples of how to do this from a few different platforms

The Builder

The builder consists of the option to opt-out and a Trigger Automation block:

Inside of the trigger automation block you'll add the endpoint for the third party that you would like to use to complete the API request - this is a POST request:

Then you'll need an ID of a user who is opted-in to be able to test the request correctly:

Test the trigger and make sure you get a 200 response

Opt-Out with Zapier

Opt-Out with Make

Opt-Out with Pipedream

Opt-Out with any API

Endpoint: https://api.landbot.io/v1/customers/:customer_id/opt_out/

Method: DELETE

Headers: Authorization Token XXXXX (Token can be found here)

More information

Was this article helpful?

Send Automated Message Templates based on Dates

reply from Slack: How to create an integration to allow agents reply WhatsApp users from Slack (with Node JS)

Contact