Create a new Compliance Tollfree Verification Inquiry for the authenticated account. This is necessary to start a new embedded session.
Create a new Compliance Tollfree Verification Inquiry for the authenticated account. This is necessary to start a new embedded session.
Body
-
The Tollfree phone number to be verified
-
The email address to receive the notification about the verification result.
-
The name of the business or organization using the Tollfree number.
-
The website of the business or organization using the Tollfree number.
-
The category of the use case for the Tollfree Number. List as many are applicable..
-
Use this to further explain how messaging is used by the business or organization.
-
An example of message content, i.e. a sample message.
-
Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
-
Values are
VERBAL
,WEB_FORM
,PAPER_FORM
,VIA_TEXT
, orMOBILE_QR_CODE
. -
Estimate monthly volume of messages from the Tollfree Number.
-
The address of the business or organization using the Tollfree number.
-
The address of the business or organization using the Tollfree number.
-
The city of the business or organization using the Tollfree number.
-
The state/province/region of the business or organization using the Tollfree number.
-
The postal code of the business or organization using the Tollfree number.
-
The country of the business or organization using the Tollfree number.
-
Additional information to be provided for verification.
-
The first name of the contact for the business or organization using the Tollfree number.
-
The last name of the contact for the business or organization using the Tollfree number.
-
The email address of the contact for the business or organization using the Tollfree number.
-
The phone number of the contact for the business or organization using the Tollfree number.
-
Theme id for styling the inquiry form.
-
Skip the messaging use case screen of the inquiry form.
curl \
--request POST 'https://trusthub.twilio.com/v1/ComplianceInquiries/Tollfree/Initialize' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'NotificationEmail=jeff%40twilio.com&TollfreePhoneNumber=%2B123445566'
{"NotificationEmail"=>"jeff@twilio.com", "TollfreePhoneNumber"=>"+123445566"}
{"OptInType"=>"VERBAL", "ThemeSetId"=>"theme_set_id", "BusinessCity"=>"Anytown", "BusinessName"=>"Owl, Inc.", "MessageVolume"=>"10", "OptInImageUrls"=>["https://testbusiness.com/images/image1.jpg", "https://testbusiness.com/images/image2.jpg"], "UseCaseSummary"=>"This number is used to send out promotional offers and coupons to the customers of John's Coffee Shop", "BusinessCountry"=>"US", "BusinessWebsite"=>"http://www.company.com", "NotificationEmail"=>"jeff@twilio.com", "UseCaseCategories"=>["TWO_FACTOR_AUTHENTICATION", "MARKETING"], "BusinessPostalCode"=>"11111", "TollfreePhoneNumber"=>"+123445566", "BusinessContactEmail"=>"email@company.com", "BusinessContactPhone"=>"+1231231234", "SkipMessagingUseCase"=>true, "AdditionalInformation"=>"see our privacy policy here www.johnscoffeeshop.com/privacypolicy", "BusinessStreetAddress"=>"123 Main Street", "BusinessStreetAddress2"=>"Suite 101", "BusinessContactLastName"=>"lastname", "ProductionMessageSample"=>"lorem ipsum", "BusinessContactFirstName"=>"firstname", "BusinessStateProvinceRegion"=>"AA"}
{
"url": "https://trusthub.twilio.com/v1/ComplianceInquiries/Tollfree/Initialize",
"inquiry_id": "inq_aaaaaaaaaaaaaaaaaaaaaaaa",
"registration_id": "tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.tollfree.PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"inquiry_session_token": "new.session.token"
}
{
"url": "https://trusthub.twilio.com/v1/ComplianceInquiries/Tollfree/Initialize",
"inquiry_id": "inq_aaaaaaaaaaaaaaaaaaaaaaaa",
"registration_id": "tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.tollfree.PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"inquiry_session_token": "new.session.token"
}