跳转到主要内容
POST
curl
Didit 的电话反馈 API 单次请求最多可接受 1,000 条验证结果。每一项都使用单条反馈中的字段。每一项需指明一次验证、一个号码或一个邮箱,以及结果,并可选择性提供事件、置信度和发生时间。与单条反馈一样,只有指明了验证或电话号码的项目才会影响该号码之后的发送;仅包含 email 的项目会被记录,但不会改变任何分数。 响应状态码为 207,每一项对应一个结果,且结果顺序与请求中的项目顺序一致,因此某一项无效不会导致其他项目被丢弃。

授权

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.

请求头

Idempotency-Key
string

Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.

Required string length: 1 - 255

请求体

application/json

Outcomes to report.

items
object[]
必填

Up to 1,000 outcomes.

Required array length: 1 - 1000 elements

响应

One result per item.

accepted
integer

Items recorded. Those that name a verification or a phone number are used by that number's fraud rules from its next send; an email-only item changes no score.

示例:

1

results
object[]

One result per item, in the same order.

最后修改于 2026年11月24日