The `vonage-verify-legacy` package provides an interface for interacting with Vonage's older Verify API, which primarily supports 2FA via SMS and Voice channels. This library is part of the Vonage Python SDK monorepo and is explicitly marked as a legacy component, encouraging users to migrate to the newer Verify API. The current version is 1.0.1, and its release cadence is tied to the maintenance of the broader Vonage Python SDK, with a focus on deprecation rather than new features.
pip install vonage-verify-legacyVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the Vonage client using API key/secret (the legacy authentication method) and initiate a verification request using the `vonage-verify-legacy` package. It covers creating a `VerifyRequest` object and calling `start_verification`.
Migrate to the `vonage.verify` client within the main `vonage` SDK. This requires updating authentication to JWT and adapting to the new API's request/response models. Consult the official Vonage migration guide.
Plan and execute migration to the new Vonage Verify API's Silent Authentication workflow, which offers a single, unified API with built-in fallbacks.
Ensure you are using the correct authentication method for the specific Verify API version you are targeting. For `vonage-verify-legacy`, use `vonage.Auth(api_key=..., api_secret=...)`. For the new Verify API, use `vonage.Auth(application_id=..., private_key=...)` and configure `client.verify`.
Verify that your `vonage_client` is initialized with the correct authentication type: `Auth(api_key='...', api_secret='...')` for the legacy `verify_legacy` client, or `Auth(application_id='...', private_key='...')` for the newer `verify` client.
Migrate your implementation to use the new Vonage Verify API client (`vonage_client.verify`) which supports these advanced features. This will involve updating your code to use the new API's parameters and response structures.
Run `pip install vonage-verify-legacy`. If you intend to use the new Verify API, you likely don't need this legacy package and should ensure you are importing from `vonage.verify` instead.