10DLC Registration
Delete a campaign
Deletes the campaign from your account and from the US 10DLC registry and returns 204 with no body.
DELETE
/
api
/
v1
/
Account
/
{auth_id}
/
Sms
/
TenDlc
/
Campaign
/
{id}
/
cURL
curl --request DELETE \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/{id}/ \
--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.campaigns.delete_campaign(
id="4c2a0e8d-6b4f-4d2c-b0a8-9e7c5a3f1d24",
)
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/TenDlc/Campaign/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Path Parameters
Response
The campaign was deleted. No body.
Was this page helpful?
⌘I
cURL
curl --request DELETE \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/{id}/ \
--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.campaigns.delete_campaign(
id="4c2a0e8d-6b4f-4d2c-b0a8-9e7c5a3f1d24",
)
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/TenDlc/Campaign/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));