Skip to main content
GET
获取服务用户每日使用量
用量 API 仅面向 Enterprise 套餐的账户开放。Team 和自助服务组织会收到 403 响应;也没有可由支持团队为单个账户启用的开关。

权限

需要使用在企业级别拥有 ViewAccountConsumption 权限的服务用户。

授权

Authorization
string
header
必填

服务用户凭据(前缀:cog_)

路径参数

service_user_id
string
必填

服务用户 ID(前缀:service-user-)

示例:

"service-user-abc123def456"

查询参数

time_before
integer | null
time_after
integer | null

响应

成功的响应

consumption_by_date
ConsumptionByDateResponse · object[]
必填
total_acus
number
必填