Skip to main content

Vonage Verify Package

This package contains the code to use Vonage's Verify API in Python. This package includes methods for working with 2-factor authentication (2FA) messages sent via SMS, Voice, WhatsApp and Email. You can also make Silent Authentication requests with Verify to give your end user a more seamless experience.

Usage

It is recommended to use this as part of the main vonage package. The examples below assume you've created an instance of the vonage.Vonage class called vonage_client.

Make a Verify Request

from vonage_verify import VerifyRequest, SmsChannel
# All channels have associated models
sms_channel = SmsChannel(to='1234567890')
params = {
    'brand': 'Vonage',
    'workflow': [sms_channel],
}
verify_request = VerifyRequest(**params)

response = vonage_client.verify.start_verification(verify_request)

If using silent authentication, the response will include a check_url field with a url that should be accessed on the user's device to proceed with silent authentication. If used, silent auth must be the first element in the workflow list.

silent_auth_channel = SilentAuthChannel(channel=ChannelType.SILENT_AUTH, to='1234567890')
sms_channel = SmsChannel(to='1234567890')
params = {
    'brand': 'Vonage',
    'workflow': [silent_auth_channel, sms_channel],
}
verify_request = VerifyRequest(**params)

response = vonage_client.verify.start_verification(verify_request)

Check a Verification Code

vonage_client.verify.check_code(request_id='my_request_id', code='1234')

Cancel a Verification

vonage_client.verify.cancel_verification('my_request_id')

Trigger the Next Workflow Event

vonage_client.verify.trigger_next_workflow('my_request_id')

Metadata

Release files for vonage-verify 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vonage-verify 2.2.0
File Size Uploaded Provenance Actions
vonage_verify-2.2.0.tar.gz 6.7 kB Without provenance Details for vonage_verify-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vonage-verify 2.2.0
File Interpreter ABI Platform Actions
vonage_verify-2.2.0-py3-none-any.whl Python 3 none any Details for vonage_verify-2.2.0-py3-none-any.whl

Total release size: 13.6 kB

Release files / vonage_verify-2.2.0.tar.gz

Download URL vonage_verify-2.2.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a34765042dee45b892e2776c84878630c74140bc13d1d52dcd10acd444c5e419
BLAKE2b-256 checksum
How to use checksums
f3a4ef917777b69dfb970396dec5bda4a02da72dd9723f50a62bf53b89f85271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.3

Release files / vonage_verify-2.2.0-py3-none-any.whl

Download URL vonage_verify-2.2.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b90e4cf00ac510d62f6763a595eea0e8b9e4384275a46217c7553414c402755
BLAKE2b-256 checksum
How to use checksums
4fd74068237145ca16e13390cc4d84a09b751619114394924112ebc2091dfab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.3

Security for vonage-verify 2.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page