Create tollfree verification

POST /v1/Tollfree/Verifications

A Messaging resource to create and retrieve Tollfree Verifications.

application/x-www-form-urlencoded

Body

  • BusinessName string Required

    The name of the business or organization using the Tollfree number.

  • BusinessWebsite string Required

    The website of the business or organization using the Tollfree number.

  • NotificationEmail string Required

    The email address to receive the notification about the verification result. .

  • UseCaseCategories array[string] Required

    The category of the use case for the Tollfree Number. List as many are applicable..

  • UseCaseSummary string Required

    Use this to further explain how messaging is used by the business or organization.

  • ProductionMessageSample string Required

    An example of message content, i.e. a sample message.

  • OptInImageUrls array[string] Required

    Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.

  • OptInType string Required

    Describe how a user opts-in to text messages.

    Values are VERBAL, WEB_FORM, PAPER_FORM, VIA_TEXT, MOBILE_QR_CODE, IMPORT, or IMPORT_PLEASE_REPLACE.

  • MessageVolume string Required

    Estimate monthly volume of messages from the Tollfree Number.

  • TollfreePhoneNumberSid string Required

    The SID of the Phone Number associated with the Tollfree Verification.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^PN[0-9a-fA-F]{32}$.

  • CustomerProfileSid string

    Customer's Profile Bundle BundleSid.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^BU[0-9a-fA-F]{32}$.

  • BusinessStreetAddress string

    The address of the business or organization using the Tollfree number.

  • BusinessStreetAddress2 string

    The address of the business or organization using the Tollfree number.

  • BusinessCity string

    The city of the business or organization using the Tollfree number.

  • BusinessStateProvinceRegion string

    The state/province/region of the business or organization using the Tollfree number.

  • BusinessPostalCode string

    The postal code of the business or organization using the Tollfree number.

  • BusinessCountry string

    The country of the business or organization using the Tollfree number.

  • AdditionalInformation string

    Additional information to be provided for verification.

  • BusinessContactFirstName string

    The first name of the contact for the business or organization using the Tollfree number.

  • BusinessContactLastName string

    The last name of the contact for the business or organization using the Tollfree number.

  • BusinessContactEmail string

    The email address of the contact for the business or organization using the Tollfree number.

  • BusinessContactPhone string(phone-number)

    The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.

  • ExternalReferenceId string

    An optional external reference ID supplied by customer and echoed back on status retrieval.

Responses

  • 201 application/json

    Created

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • sid string | null

      The unique string to identify Tollfree Verification.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^HH[0-9a-fA-F]{32}$.

    • account_sid string | null

      The SID of the Account that created the Tollfree Verification resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • customer_profile_sid string | null

      Customer's Profile Bundle BundleSid.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^BU[0-9a-fA-F]{32}$.

    • trust_product_sid string | null

      Tollfree TrustProduct Bundle BundleSid.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^BU[0-9a-fA-F]{32}$.

    • date_created string(date-time) | null

      The date and time in GMT when the resource was created specified in ISO 8601 format.

    • date_updated string(date-time) | null

      The date and time in GMT when the resource was last updated specified in ISO 8601 format.

    • regulated_item_sid string | null

      The SID of the Regulated Item.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^RA[0-9a-fA-F]{32}$.

    • business_name string | null

      The name of the business or organization using the Tollfree number.

    • business_street_address string | null

      The address of the business or organization using the Tollfree number.

    • business_street_address2 string | null

      The address of the business or organization using the Tollfree number.

    • business_city string | null

      The city of the business or organization using the Tollfree number.

    • business_state_province_region string | null

      The state/province/region of the business or organization using the Tollfree number.

    • business_postal_code string | null

      The postal code of the business or organization using the Tollfree number.

    • business_country string | null

      The country of the business or organization using the Tollfree number.

    • business_website string | null

      The website of the business or organization using the Tollfree number.

    • business_contact_first_name string | null

      The first name of the contact for the business or organization using the Tollfree number.

    • business_contact_last_name string | null

      The last name of the contact for the business or organization using the Tollfree number.

    • business_contact_email string | null

      The email address of the contact for the business or organization using the Tollfree number.

    • business_contact_phone string(phone-number) | null

      The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.

    • notification_email string | null

      The email address to receive the notification about the verification result. .

    • use_case_categories array[string] | null

      The category of the use case for the Tollfree Number. List as many are applicable..

    • use_case_summary string | null

      Use this to further explain how messaging is used by the business or organization.

    • production_message_sample string | null

      An example of message content, i.e. a sample message.

    • opt_in_image_urls array[string] | null

      Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.

    • opt_in_type string

      Describe how a user opts-in to text messages.

      Values are VERBAL, WEB_FORM, PAPER_FORM, VIA_TEXT, MOBILE_QR_CODE, IMPORT, or IMPORT_PLEASE_REPLACE.

    • message_volume string | null

      Estimate monthly volume of messages from the Tollfree Number.

    • additional_information string | null

      Additional information to be provided for verification.

    • tollfree_phone_number_sid string | null

      The SID of the Phone Number associated with the Tollfree Verification.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^PN[0-9a-fA-F]{32}$.

    • status string

      The compliance status of the Tollfree Verification record.

      Values are PENDING_REVIEW, IN_REVIEW, TWILIO_APPROVED, or TWILIO_REJECTED.

    • url string(uri) | null

      The absolute URL of the Tollfree Verification resource.

    • rejection_reason string | null

      The rejection reason given when a Tollfree Verification has been rejected.

    • error_code integer | null

      The error code given when a Tollfree Verification has been rejected.

    • edit_expiration string(date-time) | null

      The date and time when the ability to edit a rejected verification expires.

    • edit_allowed boolean | null

      If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.

    • rejection_reasons array | null

      A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.

    • external_reference_id string | null

      An optional external reference ID supplied by customer and echoed back on status retrieval.

POST /v1/Tollfree/Verifications
curl \
 --request POST 'https://messaging.twilio.com/v1/Tollfree/Verifications' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'OptInType=VERBAL&BusinessCity=Anytown&BusinessName=Owl%2C+Inc.&MessageVolume=10&OptInImageUrls=https%3A%2F%2Ftestbusiness.com%2Fimages%2Fimage1.jpg&OptInImageUrls=https%3A%2F%2Ftestbusiness.com%2Fimages%2Fimage2.jpg&UseCaseSummary=This+number+is+used+to+send+out+promotional+offers+and+coupons+to+the+customers+of+John%27s+Coffee+Shop&BusinessCountry=US&BusinessWebsite=http%3A%2F%2Fwww.company.com&NotificationEmail=support%40company.com&UseCaseCategories=TWO_FACTOR_AUTHENTICATION&UseCaseCategories=MARKETING&BusinessPostalCode=11111&ExternalReferenceId=abc123xyz567&BusinessContactEmail=email%40company.com&BusinessContactPhone=%2B11231231234&AdditionalInformation=see+our+privacy+policy+here+www.johnscoffeeshop.com%2Fprivacypolicy&BusinessStreetAddress=123+Main+Street&BusinessStreetAddress2=Suite+101&TollfreePhoneNumberSid=PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&BusinessContactLastName=lastname&ProductionMessageSample=lorem+ipsum&BusinessContactFirstName=firstname&BusinessStateProvinceRegion=AA'
Request examples
{"OptInType"=>"VERBAL", "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"=>"support@company.com", "UseCaseCategories"=>["TWO_FACTOR_AUTHENTICATION", "MARKETING"], "BusinessPostalCode"=>"11111", "ExternalReferenceId"=>"abc123xyz567", "BusinessContactEmail"=>"email@company.com", "BusinessContactPhone"=>"+11231231234", "AdditionalInformation"=>"see our privacy policy here www.johnscoffeeshop.com/privacypolicy", "BusinessStreetAddress"=>"123 Main Street", "BusinessStreetAddress2"=>"Suite 101", "TollfreePhoneNumberSid"=>"PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "BusinessContactLastName"=>"lastname", "ProductionMessageSample"=>"lorem ipsum", "BusinessContactFirstName"=>"firstname", "BusinessStateProvinceRegion"=>"AA"}
{"OptInType"=>"VERBAL", "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", "BusinessWebsite"=>"http://www.company.com", "NotificationEmail"=>"support@company.com", "UseCaseCategories"=>["TWO_FACTOR_AUTHENTICATION", "MARKETING"], "CustomerProfileSid"=>"BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "ExternalReferenceId"=>"abc123xyz567", "AdditionalInformation"=>"see our privacy policy here www.johnscoffeeshop.com/privacypolicy", "TollfreePhoneNumberSid"=>"PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "ProductionMessageSample"=>"lorem ipsum"}
Response examples (201)
{
  "sid": "HHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://messaging.twilio.com/v1/Tollfree/Verifications/HHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "status": "PENDING_REVIEW",
  "error_code": null,
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "opt_in_type": "VERBAL",
  "date_created": "2021-01-27T14:18:35Z",
  "date_updated": "2021-01-27T14:18:36Z",
  "edit_allowed": null,
  "business_city": "Anytown",
  "business_name": "Owl, Inc.",
  "message_volume": "10",
  "resource_links": {},
  "edit_expiration": null,
  "business_country": "US",
  "business_website": "http://www.company.com",
  "rejection_reason": null,
  "use_case_summary": "This number is used to send out promotional offers and coupons to the customers of John's Coffee Shop",
  "opt_in_image_urls": [
    "https://testbusiness.com/images/image1.jpg",
    "https://testbusiness.com/images/image2.jpg"
  ],
  "rejection_reasons": null,
  "trust_product_sid": null,
  "notification_email": "support@company.com",
  "regulated_item_sid": null,
  "use_case_categories": [
    "TWO_FACTOR_AUTHENTICATION",
    "MARKETING"
  ],
  "business_postal_code": "11111",
  "customer_profile_sid": null,
  "external_reference_id": "abc123xyz567",
  "additional_information": "see our privacy policy here www.johnscoffeeshop.com/privacypolicy",
  "business_contact_email": "email@company.com",
  "business_contact_phone": "+11231231234",
  "business_street_address": "123 Main Street",
  "business_street_address2": "Suite 101",
  "production_message_sample": "lorem ipsum",
  "tollfree_phone_number_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "business_contact_last_name": "lastname",
  "business_contact_first_name": "firstname",
  "business_state_province_region": "AA"
}
{
  "sid": "HHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://messaging.twilio.com/v1/Tollfree/Verifications/HHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "status": "PENDING_REVIEW",
  "error_code": null,
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "opt_in_type": "VERBAL",
  "date_created": "2021-01-27T14:18:35Z",
  "date_updated": "2021-01-27T14:18:36Z",
  "edit_allowed": null,
  "business_city": "Anytown",
  "business_name": "Owl, Inc.",
  "message_volume": "10",
  "resource_links": {},
  "edit_expiration": null,
  "business_country": "US",
  "business_website": "http://www.company.com",
  "rejection_reason": null,
  "use_case_summary": "This number is used to send out promotional offers and coupons to the customers of John's Coffee Shop",
  "opt_in_image_urls": [
    "https://testbusiness.com/images/image1.jpg",
    "https://testbusiness.com/images/image2.jpg"
  ],
  "rejection_reasons": null,
  "trust_product_sid": null,
  "notification_email": "support@company.com",
  "regulated_item_sid": null,
  "use_case_categories": [
    "TWO_FACTOR_AUTHENTICATION",
    "MARKETING"
  ],
  "business_postal_code": "11111",
  "customer_profile_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "external_reference_id": "abc123xyz567",
  "additional_information": "see our privacy policy here www.johnscoffeeshop.com/privacypolicy",
  "business_contact_email": "email@company.com",
  "business_contact_phone": "+11231231234",
  "business_street_address": "123 Main Street",
  "business_street_address2": "Suite 101",
  "production_message_sample": "lorem ipsum",
  "tollfree_phone_number_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "business_contact_last_name": "lastname",
  "business_contact_first_name": "firstname",
  "business_state_province_region": "AA"
}