跳转到主要内容
GET
curl
Didit 的电话验证 API 会按时间倒序列出应用的验证记录(最新的记录在前)。您可以按状态、渠道、号码、参考编号、标签或创建时间查找验证记录。重试会保留在同一条记录上。该 API 会忽略 template 过滤器,并且在 JSON 结果和 CSV 导出中省略 template_used。 每条 JSON 结果都包含所有尝试记录,与 获取一条验证记录 中的内容一致。如需分页获取结果,请将 next 的值作为 offset 发送:next 和 previous 是页码偏移量,例如 "20",而不是 URL,并且在最后一页时 next 为 null。服务端 SDK 的自动分页无法跟随这些偏移量,因此在使用时也需要自行传递 offset。如需导出所有匹配的记录,请发送 format=csv。列为 verification_id、status、phone_number、country、created_at 和 verified_at。

授权

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.

查询参数

status
enum<string>

pending, verified, not_delivered, expired, blocked or cancelled. Its status.

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

"verified"

channel
enum<string>

Any channel. A verification channel.

可用选项:
silent,
sms,
whatsapp,
telegram,
voice,
rcs,
viber,
zalo,
email,
push,
totp,
passkey
phone_number
string

One number. An E.164 number.

示例:

"+34600000012"

reference
string

Your reference.

示例:

"signup-48221"

tag
string

key:value, one of your tags. A tag in key:value form.

示例:

"flow:signup"

created_after
string<date-time>

ISO 8601 date and time. The earliest creation time, ISO 8601.

created_before
string<date-time>

ISO 8601 date and time. The latest creation time, ISO 8601.

limit
integer
默认值:20

20 by default, 100 at most. Rows per page.

必填范围: 1 <= x <= 100
示例:

20

offset
integer

Where the page starts: 0 by default, or the next or previous value of another page. Rows to skip.

必填范围: x >= 0
format
enum<string>
默认值:json

json, or csv to export every row of the filtered list. The response format.

可用选项:
json,
csv

响应

A page of verifications, or the filtered list as CSV.

count
integer

Rows that match the filters.

示例:

1

next
string | null

Offset of the next page of verifications, as a string such as "20", or null on the last page. It is not a URL: send it as offset to read that page.

Pattern: ^[0-9]+$
示例:

"20"

previous
string | null

Offset of the previous page of verifications, as a string such as "0", or null on the first page. It is not a URL: send it as offset to read that page.

Pattern: ^[0-9]+$
示例:

"0"

results
object[]

The verifications, newest first, each one as Retrieve returns it.

最后修改于 2026年11月24日