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

# Get Agent Usage

> Returns your agent usage over time, bucketed by the requested interval.



## OpenAPI

````yaml 2026-03-01/api.yml GET /usage/agents
openapi: 3.0.1
info:
  title: Cartesia API
  version: 0.0.1
servers:
  - url: https://api.cartesia.ai
    description: Production
security: []
paths:
  /usage/agents:
    get:
      tags:
        - Usage
      summary: Get Agent Usage
      description: Returns your agent usage over time, bucketed by the requested interval.
      operationId: usage_agents
      parameters:
        - $ref: '#/components/parameters/CartesiaVersionHeader'
        - name: start_ts
          in: query
          description: >-
            Start of the time window, as an RFC 3339 datetime (with timezone).
            Rounded down to the start of the UTC day. `start_ts` to `end_ts`
            cannot span more than a year.
          required: false
          schema:
            type: string
            format: date-time
            nullable: true
            example: '2026-03-01T00:00:00Z'
        - name: end_ts
          in: query
          description: >-
            End of the time window, as an RFC 3339 datetime (with timezone).
            Rounded up to the start of the next UTC day, unless already at
            midnight. `start_ts` to `end_ts` cannot span more than a year. Must
            be strictly after `start_ts`.
          required: false
          schema:
            type: string
            format: date-time
            nullable: true
            example: '2026-03-08T00:00:00Z'
        - name: interval
          in: query
          description: >-
            Omit to receive a single bucket spanning from `start_ts` to
            `end_ts`.
          required: false
          schema:
            $ref: '#/components/schemas/UsageInterval'
            nullable: true
          example: day
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageAgentsResponse'
              example:
                data:
                  - start_ts: '2026-03-01T00:00:00.000Z'
                    end_ts: '2026-03-02T00:00:00.000Z'
                    cents: 129
                    minutes: 18.23
                    calls: 33
                  - start_ts: '2026-03-02T00:00:00.000Z'
                    end_ts: '2026-03-03T00:00:00.000Z'
                    cents: 1093
                    minutes: 159.23
                    calls: 130
      security:
        - AdminAPIKeyAuth: []
components:
  parameters:
    CartesiaVersionHeader:
      name: Cartesia-Version
      in: header
      description: API version header.
      required: true
      schema:
        type: string
        format: date
        example: '2026-03-01'
        default: '2026-03-01'
        enum:
          - '2026-03-01'
  schemas:
    UsageInterval:
      title: UsageInterval
      type: string
      description: Groups usage data into buckets according to time.
      enum:
        - day
        - week
        - month
    UsageAgentsResponse:
      title: UsageAgentsResponse
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/UsageAgentsBucket'
          description: >-
            Agent usage buckets in chronological order. Buckets with no recorded
            activity are returned with zero values.
      required:
        - data
    UsageAgentsBucket:
      title: UsageAgentsBucket
      type: object
      description: A single bucket of agent usage within a time window.
      properties:
        start_ts:
          $ref: '#/components/schemas/UsageBucketStartTimestamp'
        end_ts:
          $ref: '#/components/schemas/UsageBucketEndTimestamp'
        cents:
          type: integer
          description: Total cost in US cents accrued within the bucket.
        minutes:
          type: number
          description: Total minutes of agent runtime within the bucket.
        calls:
          type: integer
          description: Number of agent calls that started within the bucket.
      required:
        - start_ts
        - end_ts
        - cents
        - minutes
        - calls
    UsageBucketStartTimestamp:
      type: string
      format: date-time
      description: RFC 3339 timestamp for the start of the usage bucket.
      example: '2026-01-01T00:00:00.000Z'
    UsageBucketEndTimestamp:
      type: string
      format: date-time
      description: RFC 3339 timestamp for the end of the usage bucket.
      example: '2026-01-02T00:00:00.000Z'
  securitySchemes:
    AdminAPIKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: Admin API Key
      description: >-
        Cartesia admin API key (`sk_car_admin_...`). Get one at
        [play.cartesia.ai/keys/admin](https://play.cartesia.ai/keys/admin).
      x-default: $CARTESIA_ADMIN_API_KEY

````