Use this method to opt out a customer phone number of SMS and MMS messages. A phone number can be opted out of SMS and MMS messages carrying a specific Sender ID. Using this API you can also block all outbound messages sent to a specific number.
This endpoint requires authentication.
POST /messages/opt_outs
Messaging
Void
HTTP Status Code | Error Description | Exception Class |
---|---|---|
403 | Request failed. Outbound SMS messaging service is disabled. | |
422 | The number was not opted out because of an error | |
Default | Request failed. Outbound SMS messaging service is disabled. |
curl -X POST \
--url 'https://api.wavix.com/v2/messages/opt_outs?appid=appid' \
-H 'Content-Type: application/json' \
--data-raw '{
"opt_out": {
"number": "41795703072"
}
}'