api/python/telnyx-verify-python/SKILL.md
Look up phone number information (carrier, type, caller name) and verify users via SMS/voice OTP. Use for phone verification and data enrichment. This skill provides Python SDK examples.
npx skillsauth add team-telnyx/telnyx-toolkit telnyx-verify-pythonInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
pip install telnyx
import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
All examples below assume client is already initialized as shown above.
Returns information about the provided phone number.
GET /number_lookup/{phone_number}
number_lookup = client.number_lookup.retrieve(
phone_number="+18665552368",
)
print(number_lookup.data)
POST /verifications/call — Required: phone_number, verify_profile_id
create_verification_response = client.verifications.trigger_call(
phone_number="+13035551234",
verify_profile_id="12ade33a-21c0-473b-b055-b3c836e1c292",
)
print(create_verification_response.data)
POST /verifications/flashcall — Required: phone_number, verify_profile_id
create_verification_response = client.verifications.trigger_flashcall(
phone_number="+13035551234",
verify_profile_id="12ade33a-21c0-473b-b055-b3c836e1c292",
)
print(create_verification_response.data)
POST /verifications/sms — Required: phone_number, verify_profile_id
create_verification_response = client.verifications.trigger_sms(
phone_number="+13035551234",
verify_profile_id="12ade33a-21c0-473b-b055-b3c836e1c292",
)
print(create_verification_response.data)
GET /verifications/{verification_id}
verification = client.verifications.retrieve(
"12ade33a-21c0-473b-b055-b3c836e1c292",
)
print(verification.data)
POST /verifications/{verification_id}/actions/verify
verify_verification_code_response = client.verifications.actions.verify(
verification_id="12ade33a-21c0-473b-b055-b3c836e1c292",
)
print(verify_verification_code_response.data)
GET /verifications/by_phone_number/{phone_number}
by_phone_numbers = client.verifications.by_phone_number.list(
"+13035551234",
)
print(by_phone_numbers.data)
POST /verifications/by_phone_number/{phone_number}/actions/verify — Required: code, verify_profile_id
verify_verification_code_response = client.verifications.by_phone_number.actions.verify(
phone_number="+13035551234",
code="17686",
verify_profile_id="12ade33a-21c0-473b-b055-b3c836e1c292",
)
print(verify_verification_code_response.data)
Gets a paginated list of Verify profiles.
GET /verify_profiles
page = client.verify_profiles.list()
page = page.data[0]
print(page.id)
Creates a new Verify profile to associate verifications with.
POST /verify_profiles — Required: name
verify_profile_data = client.verify_profiles.create(
name="Test Profile",
)
print(verify_profile_data.data)
Gets a single Verify profile.
GET /verify_profiles/{verify_profile_id}
verify_profile_data = client.verify_profiles.retrieve(
"12ade33a-21c0-473b-b055-b3c836e1c292",
)
print(verify_profile_data.data)
PATCH /verify_profiles/{verify_profile_id}
verify_profile_data = client.verify_profiles.update(
verify_profile_id="12ade33a-21c0-473b-b055-b3c836e1c292",
)
print(verify_profile_data.data)
DELETE /verify_profiles/{verify_profile_id}
verify_profile_data = client.verify_profiles.delete(
"12ade33a-21c0-473b-b055-b3c836e1c292",
)
print(verify_profile_data.data)
List all Verify profile message templates.
GET /verify_profiles/templates
response = client.verify_profiles.retrieve_templates()
print(response.data)
Create a new Verify profile message template.
POST /verify_profiles/templates — Required: text
message_template = client.verify_profiles.create_template(
text="Your {{app_name}} verification code is: {{code}}.",
)
print(message_template.data)
Update an existing Verify profile message template.
PATCH /verify_profiles/templates/{template_id} — Required: text
message_template = client.verify_profiles.update_template(
template_id="12ade33a-21c0-473b-b055-b3c836e1c292",
text="Your {{app_name}} verification code is: {{code}}.",
)
print(message_template.data)
tools
Build cross-platform VoIP calling apps with React Native using Telnyx Voice SDK. High-level reactive API with automatic lifecycle management, CallKit/ConnectionService integration, and push notifications. Use for mobile VoIP apps with minimal setup.
tools
Build browser-based VoIP calling apps using Telnyx WebRTC JavaScript SDK. Covers authentication, voice calls, events, debugging, call quality metrics, and AI Agent integration. Use for web-based real-time communication.
tools
Build VoIP calling apps on iOS using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, CallKit integration, PushKit/APNS push notifications, call quality metrics, and AI Agent integration. Use when implementing real-time voice communication on iOS.
tools
Build cross-platform VoIP calling apps with Flutter using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, push notifications (FCM + APNS), call quality metrics, and AI Agent integration. Works on Android, iOS, and Web.