> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取组织每日使用量

> 获取指定组织的每日 ACU 使用情况。

返回该组织的 ACU 总使用量以及按日期划分的使用明细。

**时区行为**：计费周期以太平洋标准时间（PST）午夜作为日期边界，对应的 UTC 时间为 08:00:00。要使返回的使用数据与 Devin 控制台中展示的用量一致，请传入与该时区偏移一致的 Unix 时间戳（例如：2025 年 12 月 5 日 PST 午夜对应的 1733385600）。

<div id="product-level-breakdown">
  ## 按产品拆分
</div>

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

<div id="permissions">
  ## 权限
</div>

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


## OpenAPI

````yaml zh/v3-openapi.yaml GET /v3/enterprise/consumption/daily/organizations/{org_id}
openapi: 3.1.0
info:
  description: 采用 Service User 身份验证和 RBAC 的 Devin v3 API
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/consumption/daily/organizations/{org_id}:
    get:
      tags:
        - consumption
      summary: 获取组织每日使用量
      description: >-
        获取指定组织的每日 ACU 使用情况。


        返回该组织的 ACU 总使用量以及按日期划分的使用明细。


        **时区行为**：计费周期以太平洋标准时间（PST）午夜作为日期边界，对应的 UTC 时间为 08:00:00。要使返回的使用数据与 Devin
        控制台中展示的用量一致，请传入与该时区偏移一致的 Unix 时间戳（例如：2025 年 12 月 5 日 PST 午夜对应的
        1733385600）。
      operationId: >-
        handle_get_org_consumption_daily_v3_enterprise_consumption_daily_organizations__org_id__get
      parameters:
        - description: 组织 ID（前缀：org-）
          in: path
          name: org_id
          required: true
          schema:
            example: org-abc123def456
            title: Org Id
            type: string
        - in: query
          name: time_before
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Time Before
        - in: query
          name: time_after
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Time After
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumptionResponse'
          description: 成功响应
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: 验证错误
components:
  schemas:
    ConsumptionResponse:
      properties:
        consumption_by_date:
          items:
            $ref: '#/components/schemas/ConsumptionByDateResponse'
          title: Consumption By Date
          type: array
        total_acus:
          title: Total Acus
          type: number
      required:
        - total_acus
        - consumption_by_date
      title: ConsumptionResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ConsumptionByDateResponse:
      properties:
        acus:
          title: Acus
          type: number
        acus_by_product:
          $ref: '#/components/schemas/AcusByProduct'
        date:
          title: Date
          type: integer
      required:
        - date
        - acus
        - acus_by_product
      title: ConsumptionByDateResponse
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    AcusByProduct:
      properties:
        cascade:
          title: Cascade
          type: number
        devin:
          title: Devin
          type: number
        review:
          anyOf:
            - type: number
            - type: 'null'
          title: Review
        terminal:
          title: Terminal
          type: number
      required:
        - devin
        - cascade
        - terminal
      title: AcusByProduct
      type: object
  securitySchemes:
    bearerAuth:
      description: 服务用户凭据（前缀：cog_）
      scheme: bearer
      type: http

````