import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const verifyProfileData = await client.verifyProfiles.delete('12ade33a-21c0-473b-b055-b3c836e1c292');
console.log(verifyProfileData.data);{
"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"
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const verifyProfileData = await client.verifyProfiles.delete('12ade33a-21c0-473b-b055-b3c836e1c292');
console.log(verifyProfileData.data);{
"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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The identifier of the Verify profile to delete.
"12ade33a-21c0-473b-b055-b3c836e1c292"
Expected Verify profile response to a valid request.
Show child attributes
"12ade33a-21c0-473b-b055-b3c836e1c292"
"Test Profile"
"http://example.com/webhook"
"http://example.com/webhook/failover"
The possible verification profile record types.
verification_profile "verification_profile"
"2020-09-14T17:03:32.965812"
"2020-09-14T17:03:32.965812"
Show child attributes
The message template identifier selected from /verify_profiles/templates
"0abb5b4f-459f-445a-bfcd-488998b7572d"
The name that identifies the application requesting 2fa in the verification message.
"Example Secure App"
The alphanumeric sender ID to use when sending to destinations that require an alphanumeric sender ID.
The length of the verify code to generate.
6
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.
ISO 3166-1 alpha-2 country code
["US", "CA"]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.
300
Show child attributes
The message template identifier selected from /verify_profiles/templates
"0abb5b4f-459f-445a-bfcd-488998b7572d"
The name that identifies the application requesting 2fa in the verification message.
"Example Secure App"
The length of the verify code to generate.
6
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.
ISO 3166-1 alpha-2 country code
["US", "CA"]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.
300
Show child attributes
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.
300
"en-US"
Was this page helpful?