> ## 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 /latest.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).
            Defaults to a few days before `end_ts`. 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).
            Defaults to now. 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.
          required: false
          schema:
            type: string
            format: date-time
            nullable: true
            example: '2026-03-01T00: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
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageAgentsResponse'
      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'
        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:
          type: string
          format: date-time
          description: An RFC 3339 formatted datetime string.
          example: '2026-01-01T00:00:00.000Z'
        end_ts:
          type: string
          format: date-time
          description: An RFC 3339 formatted datetime string.
          example: '2026-01-02T00:00:00.000Z'
        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
  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).

````