Once your App is Live, you can block a user from your App's settings page as shown in the below screenshots:
Just go to your App's Dashboard - Settings - View Opt-ins - Block and you can block your Opted-in user for your Live App.
Settings
View Opt-ins
Block
Apart from the UI, you can also use the following API to block spam users.
curl --location --request PUT 'https://api.gupshup.io/sm/api/v1/app/block/{{App-Name}}' \
--header 'apikey: {{APIkey}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'phone={{Phone number that is to be blocked. eg:919876543210}}' \
--data-urlencode 'block=true'
Comments
0 comments
Please sign in to leave a comment.