Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
.claude/skills/team-telnyx-telnyx-verify-python/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 130% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 68% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 149% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 184% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 263% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
bashpip install telnyx
pythonimport 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.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
pythonimport telnyx try: result = client.messages.send(to="+13125550001", from_="+13125550002", text="Hello") except telnyx.APIConnectionError: print("Network error — check connectivity and retry") except telnyx.RateLimitError: # 429: rate limited — wait and retry with exponential backoff import time time.sleep(1) # Check Retry-After header for actual delay except telnyx.APIStatusError as e: print(f"API error {e.status_code}: {e.message}") if e.status_code == 422: print("Validation error — check required fields and formats")
Common error codes: 401 invalid API key, 403 insufficient permissions, 404 resource not found, 422 validation error (check field formats), 429 rate limited (retry with exponential backoff).
+13125550001). Include the + prefix and country code. No spaces, dashes, or parentheses.for item in page_result: to iterate through all pages automatically.Returns information about the provided phone number.
GET /number_lookup/{phone_number}
pythonnumber_lookup = client.number_lookup.retrieve( phone_number="+18665552368", ) print(number_lookup.data)
Returns: caller_name (object), carrier (object), country_code (string), fraud (string | null), national_format (string), phone_number (string), portability (object), record_type (string)
GET /verifications/by_phone_number/{phone_number}
pythonby_phone_numbers = client.verifications.by_phone_number.list( "+13035551234", ) print(by_phone_numbers.data)
Returns: created_at (string), custom_code (string | null), id (uuid), phone_number (string), record_type (enum: verification), status (enum: pending, accepted, invalid, expired, error), timeout_secs (integer), type (enum: sms, call, flashcall, whatsapp), updated_at (string), verify_profile_id (uuid)
POST /verifications/by_phone_number/{phone_number}/actions/verify — Required: code, verify_profile_id
pythonverify_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)
Returns: phone_number (string), response_code (enum: accepted, rejected)
POST /verifications/call — Required: phone_number, verify_profile_id
Optional: custom_code (string | null), extension (string | null), timeout_secs (integer)
pythoncreate_verification_response = client.verifications.trigger_call( phone_number="+13035551234", verify_profile_id="12ade33a-21c0-473b-b055-b3c836e1c292", ) print(create_verification_response.data)
Returns: created_at (string), custom_code (string | null), id (uuid), phone_number (string), record_type (enum: verification), status (enum: pending, accepted, invalid, expired, error), timeout_secs (integer), type (enum: sms, call, flashcall, whatsapp), updated_at (string), verify_profile_id (uuid)
POST /verifications/flashcall — Required: phone_number, verify_profile_id
Optional: timeout_secs (integer)
pythoncreate_verification_response = client.verifications.trigger_flashcall( phone_number="+13035551234", verify_profile_id="12ade33a-21c0-473b-b055-b3c836e1c292", ) print(create_verification_response.data)
Returns: created_at (string), custom_code (string | null), id (uuid), phone_number (string), record_type (enum: verification), status (enum: pending, accepted, invalid, expired, error), timeout_secs (integer), type (enum: sms, call, flashcall, whatsapp), updated_at (string), verify_profile_id (uuid)
POST /verifications/sms — Required: phone_number, verify_profile_id
Optional: custom_code (string | null), timeout_secs (integer)
pythoncreate_verification_response = client.verifications.trigger_sms( phone_number="+13035551234", verify_profile_id="12ade33a-21c0-473b-b055-b3c836e1c292", ) print(create_verification_response.data)
Returns: created_at (string), custom_code (string | null), id (uuid), phone_number (string), record_type (enum: verification), status (enum: pending, accepted, invalid, expired, error), timeout_secs (integer), type (enum: sms, call, flashcall, whatsapp), updated_at (string), verify_profile_id (uuid)
POST /verifications/whatsapp — Required: phone_number, verify_profile_id
Optional: custom_code (string | null), timeout_secs (integer)
pythoncreate_verification_response = client.verifications.trigger_whatsapp_verification( phone_number="+13035551234", verify_profile_id="12ade33a-21c0-473b-b055-b3c836e1c292", ) print(create_verification_response.data)
Returns: created_at (string), custom_code (string | null), id (uuid), phone_number (string), record_type (enum: verification), status (enum: pending, accepted, invalid, expired, error), timeout_secs (integer), type (enum: sms, call, flashcall, whatsapp), updated_at (string), verify_profile_id (uuid)
GET /verifications/{verification_id}
pythonverification = client.verifications.retrieve( "12ade33a-21c0-473b-b055-b3c836e1c292", ) print(verification.data)
Returns: created_at (string), custom_code (string | null), id (uuid), phone_number (string), record_type (enum: verification), status (enum: pending, accepted, invalid, expired, error), timeout_secs (integer), type (enum: sms, call, flashcall, whatsapp), updated_at (string), verify_profile_id (uuid)
POST /verifications/{verification_id}/actions/verify
Optional: code (string), status (enum: accepted, rejected)
pythonverify_verification_code_response = client.verifications.actions.verify( verification_id="12ade33a-21c0-473b-b055-b3c836e1c292", code="12345", ) print(verify_verification_code_response.data)
Returns: phone_number (string), response_code (enum: accepted, rejected)
Gets a paginated list of Verify profiles.
GET /verify_profiles
pythonpage = client.verify_profiles.list() page = page.data[0] print(page.id)
Returns: call (object), created_at (string), daily_spend_limit (number), daily_spend_limit_enabled (boolean), flashcall (object), id (uuid), language (string), name (string), record_type (enum: verification_profile), sms (object), updated_at (string), webhook_failover_url (string), webhook_url (string), whatsapp (object)
Creates a new Verify profile to associate verifications with.
POST /verify_profiles — Required: name
Optional: call (object), daily_spend_limit (number), daily_spend_limit_enabled (boolean), flashcall (object), language (string), sms (object), webhook_failover_url (string), webhook_url (string), whatsapp (object)
pythonverify_profile_data = client.verify_profiles.create( name="Test Profile", ) print(verify_profile_data.data)
Returns: call (object), created_at (string), daily_spend_limit (number), daily_spend_limit_enabled (boolean), flashcall (object), id (uuid), language (string), name (string), record_type (enum: verification_profile), sms (object), updated_at (string), webhook_failover_url (string), webhook_url (string), whatsapp (object)
List all Verify profile message templates.
GET /verify_profiles/templates
pythonresponse = client.verify_profiles.retrieve_templates() print(response.data)
Returns: id (uuid), text (string)
Create a new Verify profile message template.
POST /verify_profiles/templates — Required: text
pythonmessage_template = client.verify_profiles.create_template( text="Your {{app_name}} verification code is: {{code}}.", ) print(message_template.data)
Returns: id (uuid), text (string)
Update an existing Verify profile message template.
PATCH /verify_profiles/templates/{template_id} — Required: text
pythonmessage_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)
Returns: id (uuid), text (string)
Gets a single Verify profile.
GET /verify_profiles/{verify_profile_id}
pythonverify_profile_data = client.verify_profiles.retrieve( "12ade33a-21c0-473b-b055-b3c836e1c292", ) print(verify_profile_data.data)
Returns: call (object), created_at (string), daily_spend_limit (number), daily_spend_limit_enabled (boolean), flashcall (object), id (uuid), language (string), name (string), record_type (enum: verification_profile), sms (object), updated_at (string), webhook_failover_url (string), webhook_url (string), whatsapp (object)
PATCH /verify_profiles/{verify_profile_id}
Optional: call (object), daily_spend_limit (number), daily_spend_limit_enabled (boolean), language (string), name (string), sms (object), webhook_failover_url (string), webhook_url (string), whatsapp (object)
pythonverify_profile_data = client.verify_profiles.update( verify_profile_id="12ade33a-21c0-473b-b055-b3c836e1c292", ) print(verify_profile_data.data)
Returns: call (object), created_at (string), daily_spend_limit (number), daily_spend_limit_enabled (boolean), flashcall (object), id (uuid), language (string), name (string), record_type (enum: verification_profile), sms (object), updated_at (string), webhook_failover_url (string), webhook_url (string), whatsapp (object)
DELETE /verify_profiles/{verify_profile_id}
pythonverify_profile_data = client.verify_profiles.delete( "12ade33a-21c0-473b-b055-b3c836e1c292", ) print(verify_profile_data.data)
Returns: call (object), created_at (string), daily_spend_limit (number), daily_spend_limit_enabled (boolean), flashcall (object), id (uuid), language (string), name (string), record_type (enum: verification_profile), sms (object), updated_at (string), webhook_failover_url (string), webhook_url (string), whatsapp (object)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-04 | fail→pass | 9,472 | 4,486 | -53% | 1 | 1 | 0% | 2,050 | 4,710 | +130% | 0 | 0 | — |
case-01 | fail→pass | 16,278 | 9,319 | -43% | 1 | 1 | 0% | 3,333 | 5,607 | +68% | 0 | 0 | — |
case-02 | fail→pass | 10,399 | 7,182 | -31% | 1 | 1 | 0% | 2,108 | 5,255 | +149% | 0 | 0 | — |
case-03 | fail→pass | 8,805 | 5,912 | -33% | 1 | 1 | 0% | 1,731 | 4,922 | +184% | 0 | 0 | — |
case-05 | fail→pass | 8,122 | 5,592 | -31% | 1 | 1 | 0% | 1,345 | 4,876 | +263% | 0 | 0 | — |
case-06 | fail→pass | 9,067 | 5,545 | -39% | 1 | 1 | 0% | 1,854 | 4,939 | +166% | 0 | 0 | — |
case-07 | fail→pass | 7,944 | 5,452 | -31% | 1 | 1 | 0% | 1,458 | 4,954 | +240% | 0 | 0 | — |
case-08 | fail→pass | 8,424 | 4,872 | -42% | 1 | 1 | 0% | 1,583 | 4,722 | +198% | 0 | 0 | — |
case-09 | fail→pass | 11,938 | 3,994 | -67% | 1 | 1 | 0% | 2,326 | 4,509 | +94% | 0 | 0 | — |
case-10 | fail→pass | 11,011 | 4,210 | -62% | 1 | 1 | 0% | 1,915 | 4,491 | +135% | 0 | 0 | — |
case-11 | fail→pass | 15,614 | 5,831 | -63% | 1 | 1 | 0% | 2,837 | 4,984 | +76% | 0 | 0 | — |
case-12 | fail→pass | 8,715 | 4,331 | -50% | 1 | 1 | 0% | 1,519 | 4,630 | +205% | 0 | 0 | — |
case-13 | fail→pass | 17,321 | 6,255 | -64% | 1 | 1 | 0% | 3,316 | 5,018 | +51% | 0 | 0 | — |
case-14 | fail→pass | 13,037 | 4,819 | -63% | 1 | 1 | 0% | 2,351 | 4,736 | +101% | 0 | 0 | — |
case-15 | fail→pass | 9,759 | 3,410 | -65% | 1 | 1 | 0% | 1,732 | 4,339 | +151% | 0 | 0 | — |
case-16 | fail→pass | 12,502 | 5,472 | -56% | 1 | 1 | 0% | 2,313 | 4,929 | +113% | 0 | 0 | — |
case-17 | pass→pass | 9,540 | 7,200 | -25% | 1 | 1 | 0% | 2,031 | 5,408 | +166% | 0 | 0 | — |
case-18 | pass→pass | 13,138 | 8,668 | -34% | 1 | 1 | 0% | 2,548 | 5,540 | +117% | 0 | 0 | — |
case-19 | pass→pass | 11,537 | 7,738 | -33% | 1 | 1 | 0% | 2,227 | 5,438 | +144% | 0 | 0 | — |
case-20 | pass→pass | 7,912 | 4,703 | -41% | 1 | 1 | 0% | 1,398 | 4,613 | +230% | 0 | 0 | — |
case-21 | fail→pass | 9,930 | 5,299 | -47% | 1 | 1 | 0% | 1,770 | 4,711 | +166% | 0 | 0 | — |
case-22 | fail→pass | 6,736 | 6,929 | +3% | 1 | 1 | 0% | 1,274 | 5,215 | +309% | 0 | 0 | — |
case-23 | fail→pass | 9,697 | 5,326 | -45% | 1 | 1 | 0% | 1,925 | 4,937 | +156% | 0 | 0 | — |
case-24 | pass→pass | 29,874 | 10,431 | -65% | 1 | 1 | 0% | 2,988 | 5,819 | +95% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 24 cases were attempted. The headline lift of +79 percentage points is the difference between those two pass rates over the 24 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.