跳转到主要内容
GET
curl
Didit 的 Messages API 会按从新到旧的顺序列出您应用的消息配置。每条记录都包含该工作负载的投递默认设置,以及可在发送时传递的 configuration_id。请持续跟随绝对地址形式的 next 页面 URL,直到其值为 null,以读取全部配置。count 为 100 时,实际数量可能是 100 或更多。若要设置工作负载的投递默认设置,请创建配置或更新现有配置。

授权

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.

查询参数

limit
integer
默认值:20

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

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

20

offset
integer

Where the page starts. Rows to skip.

必填范围: x >= 0

响应

A page of configurations.

count
integer

The number of configurations, normally capped at 100. Follow the next page URL until it is null to read every configuration.

示例:

1

next
string<uri> | null

Absolute URL of the next page, or null on the last page.

示例:

null

previous
string<uri> | null

Absolute URL of the previous page, or null on the first page.

示例:

null

results
object[]

The configurations.

最后修改于 2026年11月24日