Opt-In/Opt-Out APIs
Opt In/ Opt Out
curl --location 'https://apis.rmlconnect.net/wbo/v2/optinout/store' \
--header 'Authorization: <YOUR_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"msisdn": "+917039871406",
"optin_channel": "whatsapp-api",
"status": "optout",
"extra": "hello"
}'Blacklist:
curl --location 'https://apis.rmlconnect.net/wba/reports/v1/blacklist-number' \
--header 'Authorization: <YOUR_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"msisdn": "+917039871406",
"blacklist": false
}'SEPRATE-OPTOUT:
curl --location --request DELETE 'https://apis.rmlconnect.net/wbo/v2/optout?msisdn=+917039871406' \
--header 'Authorization: <YOUR_TOKEN>'SEPRATE OPTIN_STORE:
curl --location 'https://apis.rmlconnect.net/wbo/v2/optin/store' \
--header 'Authorization: <YOUR_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"msisdn": "+917039871406",
"optin_channel": "whatsapp-api"
}'Check user is opted or not;
curl --location --request GET 'https://apis.rmlconnect.net/wbo/v2/optin/check?msisdn=+917039871406' \
--header 'Authorization: <YOUR_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"msisdn": "+917039871406",
"optin_channel": "whatsapp-api"
}'Updated 15 days ago
Did this page help you?