10DLC Registration
List campaign numbers
Returns the numbers attached to the campaign at the US 10DLC registry, each with its country and the numberKey you can pass on the number endpoints.
GET
/
api
/
v1
/
Account
/
{auth_id}
/
Sms
/
TenDlc
/
Campaign
/
{id}
/
Number
/
cURL
curl --request GET \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/{id}/Number/ \
--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.list_campaign_numbers(
id="4c2a0e8d-6b4f-4d2c-b0a8-9e7c5a3f1d24",
)
const options = {
method: 'GET',
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}/Number/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"numberPreviews": [
{
"numberKey": "6f5e4d3c2b1a4c9d8e7f0a1b2c3d4e5f",
"number": "14155550100",
"countryCode": "US"
}
]
}Authorizations
Path Parameters
Was this page helpful?
⌘I
cURL
curl --request GET \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/{id}/Number/ \
--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.list_campaign_numbers(
id="4c2a0e8d-6b4f-4d2c-b0a8-9e7c5a3f1d24",
)
const options = {
method: 'GET',
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}/Number/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"numberPreviews": [
{
"numberKey": "6f5e4d3c2b1a4c9d8e7f0a1b2c3d4e5f",
"number": "14155550100",
"countryCode": "US"
}
]
}