跳转到主要内容
GET
curl
Didit 的 Phone Balance API 返回账户的 Phone 余额(以美元计),以及保持余额充足的自动充值设置:是否已开启、每次自动充值的金额,以及触发充值的余额阈值。 有关每条验证码、短信或查询的费用,请参阅 Phone 定价。

授权

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.

响应

The balance and the auto top-up.

balance
string
必填

The balance in USD.

示例:

"1240.50"

auto_top_up
object
必填
最后修改于 2026年11月24日