Create a toll-free campaign
Starts toll-free verification for one or more toll-free numbers. Business details travel in the request, so no brand is needed; only name is required.
curl --request POST \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/TollFree/ \
--header 'Content-Type: application/json' \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"name": "Example Corp toll-free notifications"
}
'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
from vobiz.sms import BrandAddress
client.sms.campaigns.create_toll_free_campaign(
reference_id="tollfree-notifications-01",
name="Example Corp toll-free notifications",
privacy_policy_url="https://example.com/privacy",
terms_and_conditions_url="https://example.com/terms",
message_volume="TEN_THOUSAND",
numbers=[
"+18335550100"
],
use_case="NOTIFICATIONS",
program_summary="Example Corp sends account and support notifications to customers who opted in on the contact form. Reply STOP to opt out, HELP for help.",
example_message="Example Corp: Your account balance is low. Add funds at https://example.com/wallet. Reply STOP to opt out, HELP for help.",
opt_ins={
"web": {"url": "https://example.com/contact", "callToAction": "By checking this box you agree to receive account notifications from Example Corp. Reply STOP to opt out, HELP for help."}
},
opt_in_image_ur_ls=[
"https://example.com/opt-in-screenshot.png"
],
country_code="US",
address=BrandAddress(
street="100 Example Street",
city="San Francisco",
state="CA",
zip_code="94105",
),
support_phone="+14155550100",
support_email="support@example.com",
business_contact_first_name="Alex",
business_contact_last_name="Doe",
legal_name="Example Corporation Inc.",
business_name="Example Corp",
business_website="https://example.com",
customer_care_email="support@example.com",
tax_id="12-3456789",
tax_id_issuing_country="US",
legal_entity_type="PRIVATE_COMPANY",
)
const options = {
method: 'POST',
headers: {
'X-Auth-ID': '<api-key>',
'X-Auth-Token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: 'Example Corp toll-free notifications'})
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/TollFree/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Path Parameters
Body
Toll-free verification request. The business details travel inside the request, so no brandId is needed; only name is required, but the reviewer checks every field you send.
Main use case of the program. Values accepted by the US 10DLC registry: TWO_FACTOR_AUTH, NOTIFICATIONS, SYSTEM_ALERTS, APP_NOTIFICATIONS, BANKING, BOOKING_CONFIRMATIONS, CHATBOT, COURIER_SERVICES_DELIVERIES, EMERGENCY_ALERTS, EVENTS_PLANNING, FRAUD_ALERTS, GENERAL_MARKETING, HEALTHCARE, INSURANCE_SERVICES, LEGAL_SERVICES, MOTIVATIONAL_REMINDERS, POLITICAL, REAL_ESTATE_SERVICES, RELIGIOUS_SERVICES, REWARDS_PROGRAM, WEBINAR_REMINDERS, AUCTIONS, COVID_19_ALERTS.
"NOTIFICATIONS"
How recipients give consent, as an object keyed by opt-in channel (for example web with url and callToAction). Passed to the registry as given.
{ "web": { "url": "https://example.com/contact", "callToAction": "By checking this box you agree to receive account notifications from Example Corp. Reply STOP to opt out, HELP for help." } }
Response
The toll-free campaign was created.
A 10DLC or toll-free campaign on your account and its state at the US 10DLC registry. Optional fields are omitted when empty, and registry state is refreshed when you retrieve the campaign.
Kind of campaign. TEN_DIGIT_LONG_CODE is a standard 10DLC campaign (the default on create) and TOLL_FREE_UNIFIED_NUMBER is a toll-free verification created with POST /TenDlc/Campaign/TollFree/. The other values are registry campaign types you can request on create.
TEN_DIGIT_LONG_CODE, TOLL_FREE_UNIFIED_NUMBER, TOLL_FREE_NUMBER, SHORT_CODE, EXTERNAL_TEN_DIGIT_LONG_CODE, DCA2_TEN_DIGIT_LONG_CODE, TOLL_FREE_EXTERNALLY_VERIFIED, RCS_SENDER_LAUNCH Registry lifecycle stage. A new campaign is DRAFT; after you register it, it moves through review stages such as SUBMITTED, IN_REVIEW or APPEALED and settles at REGISTERED or REJECTED. Other values include REGISTERED_PENDING_UPDATE, REGISTERED_PENDING_DEREGISTRATION, REJECTED_EXTERNALLY, DEREGISTERED, ARCHIVED, BLOCKED, SUSPENDED and DELETED; treat it as an open string.
"REGISTERED"
The registry's review feedback after a rejection, with keys such as rejectionDate, rejectionReasons and rejectionDetails (each detail has errorCode, description, recommendedAction and rejectionCategory). Omitted when the campaign has no feedback; address every point before you appeal.
Was this page helpful?
curl --request POST \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/TollFree/ \
--header 'Content-Type: application/json' \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"name": "Example Corp toll-free notifications"
}
'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
from vobiz.sms import BrandAddress
client.sms.campaigns.create_toll_free_campaign(
reference_id="tollfree-notifications-01",
name="Example Corp toll-free notifications",
privacy_policy_url="https://example.com/privacy",
terms_and_conditions_url="https://example.com/terms",
message_volume="TEN_THOUSAND",
numbers=[
"+18335550100"
],
use_case="NOTIFICATIONS",
program_summary="Example Corp sends account and support notifications to customers who opted in on the contact form. Reply STOP to opt out, HELP for help.",
example_message="Example Corp: Your account balance is low. Add funds at https://example.com/wallet. Reply STOP to opt out, HELP for help.",
opt_ins={
"web": {"url": "https://example.com/contact", "callToAction": "By checking this box you agree to receive account notifications from Example Corp. Reply STOP to opt out, HELP for help."}
},
opt_in_image_ur_ls=[
"https://example.com/opt-in-screenshot.png"
],
country_code="US",
address=BrandAddress(
street="100 Example Street",
city="San Francisco",
state="CA",
zip_code="94105",
),
support_phone="+14155550100",
support_email="support@example.com",
business_contact_first_name="Alex",
business_contact_last_name="Doe",
legal_name="Example Corporation Inc.",
business_name="Example Corp",
business_website="https://example.com",
customer_care_email="support@example.com",
tax_id="12-3456789",
tax_id_issuing_country="US",
legal_entity_type="PRIVATE_COMPANY",
)
const options = {
method: 'POST',
headers: {
'X-Auth-ID': '<api-key>',
'X-Auth-Token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: 'Example Corp toll-free notifications'})
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/TenDlc/Campaign/TollFree/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));