Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides Ruby SDK examples.
Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides Ruby SDK examples.
verification_request_egress = client.messaging_tollfree.verification.requests.create(
additional_information:"additionalInformation",
business_addr1:"600 Congress Avenue",
business_city:"Austin",
business_contact_email:"email@example.com",
business_contact_first_name:"John",
business_contact_last_name:"Doe",
business_contact_phone:"+18005550100",
business_name:"Telnyx LLC",
business_state:"Texas",
business_zip:"78701",
corporate_website:"http://example.com",
isv_reseller:"isvReseller",
message_volume::"100,000",
opt_in_workflow:"User signs into the Telnyx portal, enters a number and is prompted to select whether they want to use 2FA verification for security purposes. If they've opted in a confirmation message is sent out to the handset",
opt_in_workflow_image_urls: [{url:"https://client.com/sign-up"}, {url:"https://client.com/company/data-privacy"}],
phone_numbers: [{phoneNumber:"+18773554398"}, {phoneNumber:"+18773554399"}],
production_message_content:"Your Telnyx OTP is XXXX",
use_case::"2FA",
use_case_summary:"This is a use case where Telnyx sends out 2FA codes to portal users to verify their identity in order to sign into the portal"
)
puts(verification_request_egress)
Get Verification Request
Get a single verification request by its ID.
GET /messaging_tollfree/verification/requests/{id}
verification_request_egress = client.messaging_tollfree.verification.requests.update(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
additional_information:"additionalInformation",
business_addr1:"600 Congress Avenue",
business_city:"Austin",
business_contact_email:"email@example.com",
business_contact_first_name:"John",
business_contact_last_name:"Doe",
business_contact_phone:"+18005550100",
business_name:"Telnyx LLC",
business_state:"Texas",
business_zip:"78701",
corporate_website:"http://example.com",
isv_reseller:"isvReseller",
message_volume::"100,000",
opt_in_workflow:"User signs into the Telnyx portal, enters a number and is prompted to select whether they want to use 2FA verification for security purposes. If they've opted in a confirmation message is sent out to the handset",
opt_in_workflow_image_urls: [{url:"https://client.com/sign-up"}, {url:"https://client.com/company/data-privacy"}],
phone_numbers: [{phoneNumber:"+18773554398"}, {phoneNumber:"+18773554399"}],
production_message_content:"Your Telnyx OTP is XXXX",
use_case::"2FA",
use_case_summary:"This is a use case where Telnyx sends out 2FA codes to portal users to verify their identity in order to sign into the portal"
)
puts(verification_request_egress)
Delete Verification Request
Delete a verification request
A request may only be deleted when when the request is in the "rejected" state.