10DLC Registration
Add numbers to a campaign
Attaches numbers to the campaign at the US 10DLC registry and adds them to the campaign’s numbers list. Provide numbers, numberKeys, or both.
POST
/
api
/
v1
/
Account
/
{auth_id}
/
Sms
/
TenDlc
/
Campaign
/
{id}
/
Number
/
cURL
curl --request POST \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/{id}/Number/ \
--header 'Content-Type: application/json' \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"numbers": [
"14155550101"
]
}
'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.campaigns.add_campaign_numbers(
id="4c2a0e8d-6b4f-4d2c-b0a8-9e7c5a3f1d24",
numbers=[
"14155550101"
],
)
const options = {
method: 'POST',
headers: {
'X-Auth-ID': '<api-key>',
'X-Auth-Token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({numbers: ['14155550101']})
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/{id}/Number/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "ok"
}Authorizations
Path Parameters
Body
application/json
Numbers to add to, remove from or re-register on a campaign. Provide numbers, numberKeys, or both; if both are empty the request returns 400 with invalid request: numbers or numberKeys is required.
Was this page helpful?
⌘I
cURL
curl --request POST \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/{id}/Number/ \
--header 'Content-Type: application/json' \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"numbers": [
"14155550101"
]
}
'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.campaigns.add_campaign_numbers(
id="4c2a0e8d-6b4f-4d2c-b0a8-9e7c5a3f1d24",
numbers=[
"14155550101"
],
)
const options = {
method: 'POST',
headers: {
'X-Auth-ID': '<api-key>',
'X-Auth-Token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({numbers: ['14155550101']})
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/{id}/Number/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "ok"
}