Telnyx Verify: 2FA made easy

This article describes what is and how to get started with Telnyx Verify

David avatar
Written by David
Updated over a week ago

Telnyx Verify: 2FA made easy

Why is 2FA important?

User and password access methods are only as reliable as the strength of the password and the determination of a third party to obtain them; Nowadays, it is always recommended adding an extra layer of verification such as 2FA systems, enter Telnyx Verify.

What is Telnyx Verify?

Telnyx Verify is a multi-channel 2FA and verification code solution that easily enables an additional layer of security to your application.

What are the available channel options for Telnyx Verify?

We currently support SMS, Flash Call, Voice, and PSD2.

How much does Telnyx Verify cost?

You can check our latest pricing here.

What are the requirements for Telnyx Verify?

  • Having a Telnyx portal account. You can do so here.

  • Create an API Key. More on API Keys.

  • Create at least one Verify Profile with at least one verification channel (see below)

  • Integrate Telnyx Verify API with your app. (API Reference)

Sending identity verifications with Telnyx Verify

  1. Log in to your Telnyx Portal account.

  2. Retrieve and note your desired API Key here.

  3. Create and customize a Verify Profile. We advise that you create a Verify Profile for every channel you intend to use:

    1. Via Portal. If you create a Verify Profile via our portal, at the time of writing this article, you will create a Profile with the following configuration:

       {

      "data": {

      "id": "4900017d-2544-c1b2-8277-c8b66eefa75c",

      "name": "ProfileName",

      "created_at": "2021-11-15T20:23:22.809660",

      "updated_at": "2021-11-15T22:28:09.983483",

      "record_type": "verify_profile",

      "enabled": true,

      "messaging_enabled": true,

      "messaging_template": "Hello, this is the Acme Inc verification code you requested: {code}.",

      "default_verification_timeout_secs": 300,

      "rcs_enabled": true,

      "vsms_enabled": true,

      "language": "en-US",

      "sms": {

      "enabled": true,

      "messaging_enabled": true,

      "messaging_template": "Hello, this is the Acme Inc verification code you requested: {code}.",

      "default_verification_timeout_secs": 300,

      "rcs_enabled": true,

      "vsms_enabled": true

      },

      "psd2": {

      "enabled": true,

      "default_verification_timeout_secs": 300,

      "messaging_template": "Your code is {code} for payment to {payee} in the amount of {amount} {currency}."

      },

      "call": {

      "enabled": true,

      "messaging_template": "Your verification code is {code}.",

      "default_verification_timeout_secs": 300,

      "default_call_timeout_sec": 30

      },

      "flashcall": {

      "enabled": true,

      "default_verification_timeout_secs": 300

      },

      "webhook_url": "https://txtest.requestcatcher.com/test",

      "webhook_failover_url": null

      }

      }

      You can create it here. To check your Verify Profile ID you can do so by clicking the desired profile in the same page.

    2. Via API. This enables you to completely customize your configuration from scratch. More information and quick-starts in our API Reference.

      curl -X POST \ 
      --header "Content-Type: application/json" \
      --header "Accept: application/json" \
      --header "Authorization: Bearer YOUR_API_KEY" \
      --data '{"name":"Test Profile","default_timeout_secs":300, "messaging_enabled":true}' \ https://api.telnyx.com/v2/verify_profiles

  4. Start sending Verification Codes either via CLI or your own code

    curl -X POST \ 
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Authorization: Bearer YOUR_API_KEY" \
    --data '{"phone_number":"+13035551234","timeout_secs":300}' \ https://api.telnyx.com/v2/verifications/sms

  5. Success!

If you have any questions or require more information on this you can check our API Reference here and check our quickstart guide here.

Did this answer your question?