跳转到主要内容
GET
curl
Didit 的电话验证 API 会按顺序返回一次验证及其投递尝试。每次尝试都包含其渠道、路由、网络、投递与读取时间、价格以及任何错误。 verification_id 由发送和重试操作返回,与 验证列表 返回的 ID 相同。对于您的应用通过 发送 发起的验证,可以使用它来 取消待处理的验证 或 批准后端已校验的验证码。托管验证会话中的电话步骤可以在此列出和读取,但对该步骤调用取消、批准、下一步和重试都会返回 404 not_found。

授权

x-api-key
string
header
必填

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

路径参数

verification_id
string<uuid>
必填

The verification.

示例:

"c9b18621-9f8f-4590-a3b4-f8ebea4baa7d"

响应

The verification and its attempts.

One verification with every attempt.

verification_id
string<uuid>

The verification.

示例:

"c9b18621-9f8f-4590-a3b4-f8ebea4baa7d"

status
enum<string>

Its status.

可用选项:
pending,
verified,
not_delivered,
expired,
blocked,
cancelled
示例:

"verified"

phone_number
string | null

The number.

示例:

"+34600000012"

country
string | null

ISO country code.

示例:

"ES"

attempts
object[]

One entry per send, in the order the sends went out. A same-window retry repeats the last channel, so one channel can appear more than once.

reference
string | null

Your reference.

示例:

"signup-48221"

tags
object | null

The verification's session metadata. Values can include nested JSON objects and arrays.

示例:
created_at
string<date-time>

When it started.

示例:

"2026-11-21T10:00:00Z"

verified_at
string<date-time> | null

When it was verified.

示例:

"2026-11-21T10:00:12Z"

最后修改于 2026年11月24日