Logo Didit Phone Verification

Didit Phone Verification

Tổ chức
didit-protocol
didit-phone-verification

Integrate the Didit Phone Verification standalone API to verify phone numbers with a one-time code, and to risk-score a number without sending a code. Use when the user wants to send SMS, WhatsApp, Telegram, voice, RCS, Viber or Zalo codes, check phone verification codes, detect disposable or VoIP numbers, flag duplicate or blocklisted numbers, look up a number's carrier, line type or social footprint, or score phone risk with POST /v3/phone/risk/ using Didit. Supports automatic SMS fallback, branded SMS sender names, fraud signals, and per-call DECLINE policies.

Tổng quan

Nhà phát hànhdidit-protocol
Kho mãskills
Tên kỹ năngdidit-phone-verification
Sao
28
Bản fork
6
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được didit-protocol công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Didit Phone Verification trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/didit-protocol/skills/tree/main/skills/didit-phone-verification
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/didit-protocol/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/didit-phone-verification .claude/skills/didit-phone-verification
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Didit Phone Verification trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Didit Phone Verification ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Didit Phone Verification với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Didit Phone Verification API

Overview

Three standalone endpoints:

  1. Send a one-time code to a phone number: POST /v3/phone/send/
  2. Check the code the user typed and get the phone report: POST /v3/phone/check/
  3. Risk (no code sent): score a number in one call: POST /v3/phone/risk/

Key constraints (send + check):

  • Phone numbers in E.164 (e.g. +14155552671). They are validated and normalized; invalid numbers return 400.
  • The check finds the verification by your application + the phone_number. It does not take request_id.
  • A pending verification lives 5 minutes from the first send. Retries do not extend it.
  • One retry per pending verification: a second send for the same number inside the window returns "Retry" with the same request_id (2 sends in total). A further send starts a new verification with a new request_id.
  • 3 code attempts per verification. Wrong codes 1 and 2 return "Failed"; the 3rd wrong code finalizes it as "Declined" (VERIFICATION_CODE_ATTEMPTS_EXCEEDED).
  • code must be 4-8 digits (^[0-9]{4,8}$). Anything else returns 400 without using an attempt.
  • Anti-abuse cap: 4 send attempts per phone number per hour (429).
  • No pending verification (never sent, already finalized, blocked at send, or older than 5 minutes): the check returns HTTP 200 with status: "Expired or Not Found".
  • Phone verification stays disabled until your organization's first top-up (403).
  • Each new verification is stored as an API session: request_id works with GET /v3/session/{sessionId}/decision/, shows in the Business Console, and fires status.updated webhooks as it progresses.

Delivery channels: options.preferred_channel is whatsapp (default), sms, telegram, voice, rcs, viber or zalo (availability varies by country). When the preferred channel is unavailable for the number, delivery falls back to SMS and the send still reports "Success"; the channel that delivered is in phone.verification_method and in the send events of phone.lifecycle (details.actual_channel).

Branding: SMS codes carry your application's SMS sender name (set in the Business Console) at no extra cost. options.sms_sender_name signs one code with another name; options.use_white_label_customization: true uses your white-label public name when no sender name is set. WhatsApp codes use a fixed message and are not branded.

Capabilities: carrier name and line type, VoIP/virtual and disposable numbers, duplicates across your sessions (matches[]), your phone blocklist/allowlist, anti-fraud blocking at send, optional social footprint (enable_social), fraud signals.

Sandbox: sandbox API keys skip delivery, billing and persistence. Send returns a static "Success" with a random request_id; on check use code 123456 (any well-formed code returns a simplified "Approved" payload with a flat phone object). Risk returns deterministic approved data. Malformed input still returns 400.

Pricing: Phone Verification $0.04 + carrier fee per message sent, by destination country and the channel that delivers it (price table); every send except "Blocked" is billed, including "Retry"; checks are free (apart from the optional social add-on); standalone calls have no free tier. No list price is published for POST /v3/phone/risk/ (the docs say it is lower than Phone Verification) or for the social footprint add-on (enable_social, billed per request on top of the endpoint price, not billed when the lookup could not complete). These are the list prices until 1 November 2026, when Didit pricing changes and the 500 free checks a month become $10 of free credit a month. Check didit.me/pricing for current prices.

API Reference: Send Code | Check Code | Phone Risk Feature Guide: https://docs.didit.me/core-technology/phone-verification/overview


Authentication

Every request needs the x-api-key header. Use your application's API key from the Didit Business Console under Developers > API keys, or create an account and key programmatically (see Getting Started). Named keys with custom access need Sessions write to run standalone checks; a key limited to some workflows or to approved sessions cannot run them.

Getting Started (No Account Yet?)

If you don't have a Didit API key, create one in 2 API calls:

  1. Register: POST https://apx.didit.me/auth/v2/programmatic/register/ with {"email": "you@yourdomain.com", "password": "MyStr0ng!Pass"}
  2. Check email for a 6-character verification code
  3. Verify: POST https://apx.didit.me/auth/v2/programmatic/verify-email/ with {"email": "you@yourdomain.com", "code": "A3K9F2"}. The key is in the response at application.api_key.

To add credits: GET /v3/billing/balance/ to check, POST /v3/billing/top-up/ with {"amount_in_dollars": 50} for a Stripe checkout link.

See the didit-verification-management skill for full platform management (workflows, sessions, users, billing).


Step 1: Send Phone Code

POST https://verification.didit.me/v3/phone/send/

Headers

HeaderValueRequired
x-api-keyYour API keyYes
Content-Typeapplication/jsonYes

Body (JSON)

ParameterTypeRequiredDefaultConstraintsDescription
phone_numberstringYes-E.164, max 20Phone number (e.g. +14155552671)
options.code_sizeintegerNo64-8Number of digits
options.localestringNo-Max 5, BCP-47 (^[a-z]{2,3}(-[A-Z]{2,3})?$)Message language, e.g. en-US, fr, es
options.preferred_channelstringNo"whatsapp"whatsapp, sms, telegram, voice, rcs, viber, zaloPreferred channel; falls back to SMS when unavailable
options.sms_sender_namestring or nullNoyour app's SMS sender name1-30 chars: letters, digits, spaces and ' & - !, not only digits, single spacesName this code's SMS carries ("123456 is your verification code for Example Bank"). Invalid values return 400 and no code is sent. Each application can start using up to two new names per day (UTC); past that the app's name is used. Free
options.use_white_label_customizationbooleanNofalse-Without an SMS sender name, sign the SMS with your white-label public name
signals.ipstringNo-IPv4 or IPv6End user's IP for fraud detection
signals.device_idstringNo-Max 255Android ANDROID_ID, iOS identifierForVendor
signals.device_platformstringNo-android, ios, ipados, tvos, webDevice platform
signals.device_modelstringNo-Max 255e.g. iPhone17,2
signals.os_versionstringNo-Max 64e.g. 18.0.1
signals.app_versionstringNo-Max 64e.g. 1.2.34
signals.user_agentstringNo-Max 512Browser or app user agent
vendor_datastringNo--Your user id. Stored on the session (from the first send) and echoed in send, check and webhooks
metadataobjectNonullJSON objectFree-form data stored on the session and echoed back

Example

python
import requests

response = requests.post(
    "https://verification.didit.me/v3/phone/send/",
    headers={"x-api-key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
        "phone_number": "+14155552671",
        "options": {"preferred_channel": "sms", "code_size": 6, "sms_sender_name": "Example Bank"},
        "signals": {"ip": "203.0.113.42", "device_platform": "ios"},
        "vendor_data": "user-1234",
    },
    timeout=30,
)
print(response.status_code, response.json())
typescript
const response = await fetch("https://verification.didit.me/v3/phone/send/", {
  method: "POST",
  headers: { "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({
    phone_number: "+14155552671",
    options: { preferred_channel: "whatsapp", code_size: 6, locale: "en-US" },
    vendor_data: "user-1234",
  }),
});
const data = await response.json(); // { request_id, status, reason, vendor_data, metadata }

Response (200 OK)

json
{
  "request_id": "e39cb057-92fc-4b59-b84e-02fec29a0f24",
  "status": "Success",
  "reason": null,
  "vendor_data": "user-1234",
  "metadata": null
}

Status Values & Handling

StatusMeaningAction
"Success"Code sent for a new verification (possibly by SMS fallback)Wait for the user's code, then call Check
"Retry"Second send inside the 5-minute window: code re-sent for the same pending verification, same request_id (billed)Wait for the code, then call Check
"Blocked"The anti-fraud layer refused to send. reason says why (e.g. suspicious, spam). Not billed. The verification is finalized at once (Declined with HIGH_RISK_PHONE_NUMBER, or In Review for an allowlisted number), so a later check returns "Expired or Not Found"Do not retry the same number; ask for another number or review

Error Responses

CodeMeaningAction
400Invalid requestRead the field errors in the response body. A number that parses but cannot receive a code returns {"detail": "Invalid phone number provided."} or {"detail": "Invalid phone line type provided."} (e.g. a short code)
401The API key has expiredRotate it or create a new key in Developers > API keys
403Missing, wrong or revoked API key; a scoped key without access to this endpoint; a request from outside the key's IP allowlist; or not enough creditsRead the message in detail or error: fix the x-api-key header or the key's access, or top up
429Rate limit: 300 POST/PATCH/DELETE and 600 GET requests a minute per keyWait the Retry-After seconds, then retry
502Phone provider temporarily unavailable: {"detail": "...", "code": "phone_provider_unavailable"}Retry with a short backoff. Nothing billed, no attempt used

Phone-specific cases: 403 with a detail saying phone verification is disabled until your organization's first top-up (sandbox applications can still test it for free), and 403 with error when the balance cannot cover the destination's send price. A 429 for too many attempts on the same number (4 an hour) carries no Retry-After header: wait, or use a different number.


Step 2: Check Phone Code

Verifies the code and returns the phone report. Call Send first, with the same phone_number.

POST https://verification.didit.me/v3/phone/check/

Headers: same as Step 1.

Body (JSON)

ParameterTypeRequiredDefaultValuesDescription
phone_numberstringYes-E.164Same number used in Step 1 (this links check to send)
codestringYes-4-8 digitsThe code the user received
duplicated_phone_number_actionstringNo"NO_ACTION""NO_ACTION" / "DECLINE"Number already used by a different user (different vendor_data) of your application
disposable_number_actionstringNo"NO_ACTION""NO_ACTION" / "DECLINE"Temporary or burner number (phone.is_disposable)
voip_number_actionstringNo"NO_ACTION""NO_ACTION" / "DECLINE"Virtual line: voip, isp or vpn (phone.is_virtual)
enable_socialbooleanNofalse-Also look up the number's social footprint (adds phone.phone_social; billed per request as an add-on)
phone_no_social_presence_actionstringNo"NO_ACTION""NO_ACTION" / "DECLINE"Decline when the social footprint check finds the number on no platform (profiles_registered: 0). Needs enable_social: true

Policy note: DECLINE turns a correct code into "Declined" when the risk is found. NO_ACTION records the risk in phone.warnings (log type information) without changing the status. Blocklisted numbers always decline. Only NO_ACTION and DECLINE are accepted here.

Example

python
response = requests.post(
    "https://verification.didit.me/v3/phone/check/",
    headers={"x-api-key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
        "phone_number": "+14155552671",
        "code": "123456",
        "disposable_number_action": "DECLINE",
        "voip_number_action": "DECLINE",
    },
    timeout=30,
)
result = response.json()
if result["status"] in ("Approved", "Declined"):
    print(result["phone"]["carrier"], result["phone"]["is_virtual"])
typescript
const response = await fetch("https://verification.didit.me/v3/phone/check/", {
  method: "POST",
  headers: { "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({
    phone_number: "+14155552671",
    code: "123456",
    voip_number_action: "DECLINE",
  }),
});
const result = await response.json(); // inspect result.status, not the HTTP code

Response (200 OK)

json
{
  "request_id": "e39cb057-92fc-4b59-b84e-02fec29a0f24",
  "status": "Approved",
  "message": "The verification code is correct.",
  "phone": {
    "status": "Approved",
    "phone_number_prefix": "+1",
    "phone_number": "4155552671",
    "full_number": "+14155552671",
    "country_code": "US",
    "country_name": "United States",
    "carrier": {"name": "Example Mobile", "type": "mobile"},
    "is_disposable": false,
    "is_virtual": false,
    "verification_method": "whatsapp",
    "verification_attempts": 1,
    "verified_at": "2026-06-12T01:24:47.311323Z",
    "warnings": [],
    "lifecycle": [
      {"type": "PHONE_VERIFICATION_MESSAGE_SENT", "timestamp": "2026-06-12T01:23:39.580554+00:00", "details": {"status": "Success", "reason": null, "channel": "whatsapp", "actual_channel": "whatsapp"}, "fee": 0.0709},
      {"type": "PHONE_DELIVERY_DELIVERED", "timestamp": "2026-06-12T01:23:43.118220+00:00", "details": {"channel": "whatsapp", "status": "delivered"}, "fee": 0},
      {"type": "VALID_CODE_ENTERED", "timestamp": "2026-06-12T01:24:47.311201+00:00", "details": {"code_tried": "123456", "status": "Approved"}, "fee": 0},
      {"type": "PHONE_VERIFICATION_APPROVED", "timestamp": "2026-06-12T01:24:47.384292+00:00", "details": null, "fee": 0}
    ],
    "matches": []
  },
  "vendor_data": "user-1234",
  "metadata": null,
  "created_at": "2026-06-12T01:24:47.401719+00:00"
}

A wrong code with attempts left returns "status": "Failed", "message": "The verification code is incorrect. Attempts remaining: 2" and "phone": null.

Status Values & Handling

StatusMeaningrequest_id / phoneAction
"Approved"Correct code, no declining riskSession id of the send / full reportPhone verified, proceed
"Declined"Terminal: correct code but a declining risk matched (a DECLINE action, blocklisted or high-risk number), or the 3rd wrong codeSession id of the send / full reportRead phone.warnings; block or ask for another number
"Failed"Wrong code, attempts remaining (message says how many)One-off UUID / nullAsk the user to re-enter the code
"Expired or Not Found"No pending verification for this number in the last 5 minutesOne-off UUID / absentSend a new code (Step 1)

Error Responses

CodeMeaningAction
400Invalid requestRead the field errors in the response body (code not 4-8 digits, invalid number, action not NO_ACTION/DECLINE). No attempt is used
401The API key has expiredRotate it or create a new key in Developers > API keys
403Missing, wrong or revoked API key; a scoped key without access to this endpoint; a request from outside the key's IP allowlist; or not enough creditsRead the message in detail or error: fix the x-api-key header or the key's access, or top up
429Rate limit: 300 POST/PATCH/DELETE and 600 GET requests a minute per keyWait the Retry-After seconds, then retry
502Phone provider temporarily unavailable ("code": "phone_provider_unavailable")Retry with a short backoff. No attempt is used

Checks are free; the only credit check is for the enable_social add-on (403 with error when the balance cannot cover it).


Phone Risk (no code sent)

Scores a number in one synchronous call: carrier, line type, porting, disposable number, duplicates and normalized risk intelligence. No code is sent and the user does nothing. Creates an API session (request_id).

POST https://verification.didit.me/v3/phone/risk/

Body (JSON)

ParameterTypeRequiredDefaultDescription
phone_numberstringYes-Number to score (max 20, normalized to E.164)
country_codestringNo-ISO 3166-1 alpha-2 or alpha-3 country hint (max 3 chars)
signalsobjectNo-Same fields as signals in Step 1
enable_socialbooleanNofalseAdd the phone.phone_social block (billed per request as an add-on)
vendor_datastringNo-Your reference, stored and echoed
metadataobjectNonullYour JSON metadata, stored and echoed

Example

python
response = requests.post(
    "https://verification.didit.me/v3/phone/risk/",
    headers={"x-api-key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={"phone_number": "+14155552671", "country_code": "US", "vendor_data": "lead-123"},
    timeout=30,
)
result = response.json()
print(result["status"], result["phone"]["is_virtual"], result["phone"].get("phone_intelligence"))
typescript
const response = await fetch("https://verification.didit.me/v3/phone/risk/", {
  method: "POST",
  headers: { "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({ phone_number: "+14155552671", country_code: "US", vendor_data: "lead-123" }),
});
const result = await response.json();

Response (200 OK)

json
{
  "request_id": "4fd09d2e-9bc9-4c4e-9c46-7f625ac0ab62",
  "status": "Approved",
  "phone": {
    "status": "Approved",
    "phone_number_prefix": "+1",
    "phone_number": "4155552671",
    "full_number": "+14155552671",
    "country_code": "US",
    "country_name": "United States",
    "carrier": {"name": "Example Mobile", "type": "mobile"},
    "is_disposable": false,
    "is_virtual": false,
    "verification_method": null,
    "verification_attempts": 0,
    "verified_at": null,
    "warnings": [],
    "lifecycle": [],
    "matches": [],
    "phone_intelligence": {
      "score": 3.0,
      "phone_type_risk": "Low",
      "phone_trust_index": 97,
      "network_stability_index": 95,
      "is_disposable": false,
      "is_ported": false,
      "is_recently_ported": false,
      "carrier_type": "mobile",
      "reason_codes": []
    },
    "enrichment": {
      "score": 3.0,
      "phone_type_risk": "Low",
      "phone_trust_index": 97,
      "network_stability_index": 95,
      "is_disposable": false,
      "is_ported": false,
      "is_recently_ported": false,
      "carrier_type": "mobile",
      "reason_codes": []
    }
  },
  "vendor_data": "lead-123",
  "metadata": null,
  "created_at": "2026-09-01T10:30:00.123456+00:00"
}
  • status (top level and phone.status): "Approved", "In Review" or "Declined". Normally "Approved"; your application's phone-risk rules can produce the others. HTTP is 200 for every completed lookup.
  • phone.phone_intelligence and phone.enrichment are the same object (compatibility alias). They are best-effort: both keys are absent when no usable intelligence came back. Build rules on is_disposable and is_virtual first and treat a missing block as "unknown", not "safe". phone.carrier can be null when no carrier was resolved.
  • Billed once the lookup starts, even when best-effort fields are missing.

Errors: 400 field errors, 401, 403 (including the credit check for the call plus the enable_social add-on), 429, as in Step 2.


Response Field Reference

phone Object (check and risk)

FieldTypeDescription
statusstringCheck: "Approved" or "Declined" on finalized checks (enum also has "In Review", "Not Finished", "Expired"). Risk: "Approved", "In Review", "Declined"
phone_number_prefixstringCountry calling code with + (e.g. +1)
phone_numberstringNational number without the calling code
full_numberstringFull E.164 number
country_code / country_namestringISO 3166-1 alpha-2 country of the number, and its name
carrier.namestringCarrier name (empty string when unknown)
carrier.typestringmobile, fixed_line, voip, isp, vpn, toll_free, premium_rate, pager, payphone, satellite, service, shared_cost, short_codes_commercial, calling_cards, local_rate, universal_access, voice_mail, other, unknown
is_disposablebooleanTemporary or burner number service
is_virtualbooleanLine type is voip, isp or vpn
verification_methodstringChannel that delivered the code once delivery is confirmed, otherwise the requested channel. null on risk lookups
verification_attemptsintegerNumber of code sends for this verification (1, or 2 after a retry). 0 on risk lookups
verified_atstring or nullWhen the correct code was entered
warningsarray{feature, risk, additional_data, log_type, short_description, long_description}. log_type: error declines, warning flags for review, information is recorded only
lifecyclearray{type, timestamp, details, fee}. Types: PHONE_VERIFICATION_MESSAGE_SENT, PHONE_VERIFICATION_RETRY_MESSAGE_SENT, PHONE_VERIFICATION_BLOCKED, PHONE_DELIVERY_DELIVERED, PHONE_DELIVERY_UNDELIVERABLE, VALID_CODE_ENTERED, INVALID_CODE_ENTERED, PHONE_VERIFICATION_APPROVED, PHONE_VERIFICATION_DECLINED, PHONE_VERIFICATION_IN_REVIEW, PHONE_VERIFICATION_EXPIRED. Send events carry {status, reason, channel, actual_channel}; fee (USD) is non-zero only on send events
matchesarrayUp to 5 other sessions of your application where a different user (vendor_data) used this number: {session_id, session_number, vendor_data, verification_date, phone_number, status, is_blocklisted, api_service, source}. source is session, or list_entry for a blocklist entry
phone_intelligence / enrichmentobjectRisk endpoint only, best-effort: score (0-100, higher is riskier), phone_type_risk (Low/Medium/High), phone_trust_index (inverse of the score), network_stability_index, is_disposable, is_ported, is_recently_ported, carrier_type, reason_codes (open list; do not reject unknown codes)
phone_socialobjectOnly with enable_social: true and a completed lookup: profiles_registered / profiles_checked (0 registered is a real, billable answer), counts, 0-10 indexes, whatsapp_profile_completeness (Basic, Partial, Complete, Not Present), registered_platforms, not_registered_platforms, categories, profiles. Counts can be null

Warning Tags

TagSeverityDescription
VERIFICATION_CODE_ATTEMPTS_EXCEEDEDerror (always declines)The 3rd wrong code on the standalone check
PHONE_NUMBER_IN_BLOCKLISTerror (always declines)Number on your phone blocklist (Lists API) or matched a blocklisted session. additional_data: blocklisted_session_id, blocklisted_session_number, api_service
HIGH_RISK_PHONE_NUMBERerror by defaultRaised at send when the anti-fraud layer blocks it ("Blocked"); declines. A number on your phone allowlist goes to In Review instead (log_type: "warning", additional_data.phone_number_in_allowlist: true). additional_data.blocked_reason holds the send reason
DISPOSABLE_NUMBER_DETECTEDPer disposable_number_actionTemporary or burner number
VOIP_NUMBER_DETECTEDPer voip_number_actionLine type voip, isp or vpn
DUPLICATED_PHONE_NUMBERPer duplicated_phone_number_actionNumber used by a different user in another session (any status). additional_data: duplicated_session_id, duplicated_session_number, api_service
PHONE_NUMBER_IN_ALLOWLISTinformationNumber matched other sessions but is on your phone allowlist, so the duplicate action was skipped. additional_data: phone_number

On this API a DECLINE action gives log type error, NO_ACTION gives information.


Common Workflows

Basic Phone Verification

1. POST /v3/phone/send/   -> {"phone_number": "+14155552671"}
   If "Blocked"           -> ask for another number (nothing billed)
2. Wait for the user to type the code (valid 5 minutes from the first send)
3. POST /v3/phone/check/  -> {"phone_number": "+14155552671", "code": "123456"}
4. If "Approved"             -> phone verified
   If "Failed"               -> ask the user to retry (3 attempts in total)
   If "Declined"             -> read phone.warnings
   If "Expired or Not Found" -> send again (step 1)

Strict Security Verification

1. POST /v3/phone/send/   -> include signals.ip, signals.device_platform, vendor_data,
                             options.preferred_channel: "sms"
2. POST /v3/phone/check/  -> disposable_number_action, voip_number_action,
                             duplicated_phone_number_action = "DECLINE"
3. If "Declined" -> phone.warnings[].risk says why; block or ask for another number

Pre-screen Without a Code

1. POST /v3/phone/risk/   -> {"phone_number": "+14155552671", "vendor_data": "lead-123"}
2. If phone.is_virtual or phone.is_disposable -> reject before sending any OTP
3. Otherwise continue with the send/check flow above

Utility Scripts

verify_phone.py: Send codes, check codes and score phone risk from the command line.

bash
# Requires: pip install requests
export DIDIT_API_KEY="your_api_key"

python scripts/verify_phone.py send +14155552671 --channel sms --sms-sender-name "Example Bank"
python scripts/verify_phone.py check +14155552671 123456 --decline-voip --decline-disposable
python scripts/verify_phone.py risk +14155552671 --country-code US

Can also be imported as a library:

python
from scripts.verify_phone import send_code, check_code, score_phone_risk

send_result = send_code("+14155552671", channel="sms")
check_result = check_code("+14155552671", "123456", decline_voip=True)
risk_result = score_phone_risk("+14155552671")

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Didit Phone Verification làm được gì?

Integrate the Didit Phone Verification standalone API to verify phone numbers with a one-time code, and to risk-score a number without sending a code. Use when the user wants to send SMS, WhatsApp, Telegram, voice, RCS, Viber or Zalo codes, check phone verification codes, detect disposable or VoIP numbers, flag duplicate or blocklisted numbers, look up a number's carrier, line type or social footprint, or score phone risk with POST /v3/phone/risk/ using Didit. Supports automatic SMS fallback, branded SMS sender names, fraud signals, and per-call DECLINE policies.

Vì sao nên dùng Didit Phone Verification trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Didit Phone Verification là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Didit Phone Verification trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/didit-protocol/skills/tree/main/skills/didit-phone-verification. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Didit Phone Verification?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Didit Phone Verification với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Didit Phone Verification với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Didit Phone Verification có miễn phí không?

Có. Kỹ năng này được didit-protocol phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇