"Test Profile"]); // Trigger a verification request and send SMS $verification = \Telnyx\Verification::create([ 'verify_profile_id' => $verify_profile['id'], 'phone_number' => $_POST['phone'], 'type' => 'sms' ]); ?>

Verification was sent to:

                // Retrieve the status of the verification
                $verification = \Telnyx\Verification::retrieve('');
                

Verification Status for ID:

                // Retrieve the status of the verification
                $verification = \Telnyx\Verification::retrieve('');
                

Submit Verification Code

                // Submit verificaiton code
                $verify_status = \Telnyx\Verification::submit_verification('', '000000');
                

Submitted Verification Code:

                // Retrieve the status of the verification
                $verification = \Telnyx\Verification::retrieve('');
                

Telnyx Verify Demo

Hi and welcome to the Telnyx Verify API demo.

        // Create a Verification profile
        $verify_profile = VerifyProfile::create(["name" => "Test Profile"]);

        // Trigger a verification request and send SMS
        $verification = Verification::create([
            'verify_profile_id' => $verify_profile['id'],
            'phone_number' => '+15557770000',
            'type' => 'sms'
        ]);