跳转到主要内容
GET
curl
Didit 的 Messages API 会在您发送消息之前,检查某个电话号码可用的投递渠道。请在 to 中传入 E.164 格式的号码。channels 对象为每个渠道包含一个布尔值,该值基于号码类型,以及该号码与您的应用之间是否已有对话。

授权

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.

查询参数

to
string
必填

An E.164 number. The recipient number in E.164 format.

示例:

"+34600000012"

响应

What the number can receive now.

Channels a number can receive now.

channels
object

What the number can receive now.

最后修改于 2026年11月24日