> ## 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>

需要一个在 Enterprise 级别具有 `ViewAccountConsumption` 权限的服务账号。


## OpenAPI

````yaml zh/v3-openapi.yaml GET /v3/enterprise/consumption/daily/users/{user_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/users/{user_id}:
    get:
      tags:
        - consumption
      summary: 获取用户每日使用量
      description: >-
        获取指定用户的每日 ACU 消耗情况。


        返回该用户的 ACU 总消耗量，以及按日期划分的详细消耗数据。


        **时区行为**：计费周期以太平洋标准时间（PST）午夜作为日期边界，对应 UTC 时间 08:00:00。若要与 Devin
        控制台中显示的消耗数据保持一致，请传入与该时区偏移对齐的 Unix 时间戳（例如：2025 年 12 月 5 日 PST 午夜对应的
        1733385600）。
      operationId: >-
        handle_get_user_consumption_daily_v3_enterprise_consumption_daily_users__user_id__get
      parameters:
        - description: 用户 ID
          in: path
          name: user_id
          required: true
          schema:
            title: User 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

````