Opt-outs
Delete an opt-out
Removes a phone number from your opt-out list for one channel so you can message it again. Do this only after the contact has given consent again.
DELETE
/
api
/
v1
/
Account
/
{auth_id}
/
Sms
/
OptOut
/
{phoneNumber}
/
cURL
curl --request DELETE \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/OptOut/{phoneNumber}/ \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.opt_outs.delete_opt_out(
phone_number="+14155550123",
channel="sms",
)
const options = {
method: 'DELETE',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/OptOut/{phoneNumber}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "ok"
}Authorizations
Path Parameters
Query Parameters
Was this page helpful?
⌘I
cURL
curl --request DELETE \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/OptOut/{phoneNumber}/ \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.opt_outs.delete_opt_out(
phone_number="+14155550123",
channel="sms",
)
const options = {
method: 'DELETE',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/OptOut/{phoneNumber}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "ok"
}