curl --location --request POST '/verify_profiles' \
--header 'Content-Type: application/json' \
--data-raw '{
"call": {
"app_name": "Example Secure App",
"code_length": 5,
"default_verification_timeout_secs": 300,
"messaging_template_id": "0abb5b4f-459f-445a-bfcd-488998b7572d",
"whitelisted_destinations": [
"US",
"CA"
]
},
"flashcall": {
"default_verification_timeout_secs": 300,
"whitelisted_destinations": [
"US",
"CA"
]
},
"language": "en-US",
"name": "Test Profile",
"sms": {
"alpha_sender": "Telnyx",
"app_name": "Example Secure App",
"code_length": 5,
"default_verification_timeout_secs": 300,
"messaging_template_id": "0abb5b4f-459f-445a-bfcd-488998b7572d",
"whitelisted_destinations": [
"US",
"CA"
]
},
"webhook_failover_url": "http://example.com/webhook/failover",
"webhook_url": "http://example.com/webhook"
}'
{
"data": {
"call": {
"app_name": "Example Secure App",
"code_length": 5,
"default_verification_timeout_secs": 300,
"messaging_template_id": "0abb5b4f-459f-445a-bfcd-488998b7572d",
"whitelisted_destinations": [
"US",
"CA"
]
},
"created_at": "2020-09-14T17:03:32.965812",
"flashcall": {
"default_verification_timeout_secs": 300
},
"id": "12ade33a-21c0-473b-b055-b3c836e1c292",
"language": "en-US",
"name": "Test Profile",
"record_type": "verification_profile",
"sms": {
"alpha_sender": "Telnyx",
"app_name": "Example Secure App",
"code_length": 5,
"default_verification_timeout_secs": 300,
"messaging_template_id": "0abb5b4f-459f-445a-bfcd-488998b7572d",
"whitelisted_destinations": [
"US",
"CA"
]
},
"updated_at": "2020-09-14T17:03:32.965812",
"webhook_failover_url": "http://example.com/webhook/failover",
"webhook_url": "http://example.com/webhook"
}
}
Authorization: Bearer ********************