跳转到主要内容
GET
/
v3beta1
/
enterprise
/
consumption
/
daily
/
organizations
/
{org_id}
获取组织每日使用量
curl --request GET \
  --url https://api.devin.ai/v3beta1/enterprise/consumption/daily/organizations/{org_id} \
  --header 'Authorization: Bearer <token>'
{
  "consumption_by_date": [
    {
      "acus": 123,
      "acus_by_product": {
        "cascade": 123,
        "devin": 123,
        "terminal": 123
      },
      "date": 123
    }
  ],
  "total_acus": 123
}

按产品拆分

响应中的每个日期条目都包含一个 acus_by_product 对象,它将 ACU 总消耗量按产品拆分为各个组成部分:devincascadeterminal。这样可以查看每天的消耗在各产品之间的分布情况。对于某个产品,如果没有可用的产品级数据,其值将默认为 0.0

权限

需要一个在企业级别拥有 ManageBilling 权限的服务用户。

授权

Authorization
string
header
必填

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

路径参数

org_id
string
必填

查询参数

time_before
integer | null
time_after
integer | null

响应

成功响应

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