Update Verify profile
PATCH/verify_profiles/:verify_profile_id
Update Verify profile
Request
Path Parameters
The identifier of the Verify profile to update.
- application/json
Body
required
sms
object
The message template identifier selected from /verify_profiles/templates
Possible values: Value must match regular expression ^[A-Za-z0-9 -]{1,30}$
The name that identifies the application requesting 2fa in the verification message.
Possible values: Value must match regular expression ^[A-Za-z0-9 ]{1,11}$
Default value: Telnyx
The alphanumeric sender ID to use when sending to destinations that require an alphanumeric sender ID.
Default value: 5
The length of the verify code to generate.
Possible values: Value must match regular expression ^[A-Z]{2}$
Enabled country destinations to send verification codes. The elements in the list must be valid ISO 3166-1 alpha-2 country codes. If set to ["*"]
, all destinations will be allowed.
Default value: 300
For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity.
call
object
The message template identifier selected from /verify_profiles/templates
Possible values: Value must match regular expression ^[A-Za-z0-9 -]{1,30}$
The name that identifies the application requesting 2fa in the verification message.
Default value: 5
The length of the verify code to generate.
Possible values: Value must match regular expression ^[A-Z]{2}$
Enabled country destinations to send verification codes. The elements in the list must be valid ISO 3166-1 alpha-2 country codes. If set to ["*"]
, all destinations will be allowed.
Default value: 300
For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity.
flashcall
object
Possible values: Value must match regular expression ^[A-Z]{2}$
Enabled country destinations to send verification codes. The elements in the list must be valid ISO 3166-1 alpha-2 country codes. If set to ["*"]
, all destinations will be allowed.
Default value: 300
For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity.
Responses
200: Expected Verify profile response to a valid request.
- application/json
400: Bad Request
- application/json
Request samples
curl -L -X PATCH 'https://api.telnyx.com/v2/verify_profiles/:verify_profile_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "Test Profile",
"webhook_url": "http://example.com/webhook",
"webhook_failover_url": "http://example.com/webhook/failover",
"sms": {
"messaging_template_id": "0abb5b4f-459f-445a-bfcd-488998b7572d",
"app_name": "Example Secure App",
"alpha_sender": "Telnyx",
"code_length": 6,
"whitelisted_destinations": [
"US",
"CA"
],
"default_verification_timeout_secs": 300
},
"call": {
"messaging_template_id": "0abb5b4f-459f-445a-bfcd-488998b7572d",
"app_name": "Example Secure App",
"code_length": 6,
"whitelisted_destinations": [
"US",
"CA"
],
"default_verification_timeout_secs": 300
},
"flashcall": {
"whitelisted_destinations": [
"US",
"CA"
],
"default_verification_timeout_secs": 300
},
"language": "en-US"
}'
Response samples
{
"data": {
"id": "12ade33a-21c0-473b-b055-b3c836e1c292",
"name": "Test Profile",
"webhook_url": "http://example.com/webhook",
"webhook_failover_url": "http://example.com/webhook/failover",
"record_type": "verification_profile",
"created_at": "2020-09-14T17:03:32.965812",
"updated_at": "2020-09-14T17:03:32.965812",
"sms": {
"messaging_template_id": "0abb5b4f-459f-445a-bfcd-488998b7572d",
"app_name": "Example Secure App",
"alpha_sender": "Telnyx",
"code_length": 6,
"whitelisted_destinations": [
"US",
"CA"
],
"default_verification_timeout_secs": 300
},
"call": {
"messaging_template_id": "0abb5b4f-459f-445a-bfcd-488998b7572d",
"app_name": "Example Secure App",
"code_length": 6,
"whitelisted_destinations": [
"US",
"CA"
],
"default_verification_timeout_secs": 300
},
"flashcall": {
"default_verification_timeout_secs": 300
},
"language": "en-US"
}
}
{
"errors": [
{
"code": "10015",
"title": "Invalid sorting value",
"detail": "The value provided for sorting is not valid. Check the value used and try again.",
"source": {
"pointer": "/sort",
"parameter": "string"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10015"
}
}
]
}