Skip to main content
GET
每日消耗端点
需要 Enterprise 管理员的个人 API key。 返回你所在 Enterprise 在当前计费周期内按日期和组织划分的每日 ACU 消耗数据。

时区行为

计费周期以 PST (太平洋标准时间) 午夜 作为每天的边界时间,对应 08:00:00 UTC。要与 Devin 仪表板中显示的用量数据保持一致,你必须传入带有此时区偏移的时间戳。 例如,要查询从 2025 年 12 月 5 日到 2026 年 1 月 5 日这一计费周期的用量:
如果你传入的日期没有带上 T08:00:00Z 后缀 (例如 2025-12-05) ,API 将使用 UTC 当天的零点时间,这可能会导致与仪表盘上显示的用量总计略有差异。

按组织过滤

org_ids 过滤时,结果会包含计入指定组织的所有 ACU:包括 Devin session ACU,以及计入每位用户主要计费组织的 Devin Desktop 和 Devin CLI ACU。有关如何确定用户的主要计费组织,请参阅 Local Agent Controls

授权

Authorization
string
header
必填

仅供 Enterprise 管理员使用的个人 API Key(apk_user_*)

查询参数

start_date
string<date-time> | null
end_date
string<date-time> | null
start
string<date-time> | null
end
string<date-time> | null
org_ids
string[] | null

响应

成功响应

consumption_by_date
Consumption By Date · object
必填
consumption_by_org_id
Consumption By Org Id · object
必填
total_acus
number
必填
consumption_by_user
Consumption By User · object | null