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

> Returns your peak concurrency in five-minute buckets.



## OpenAPI

````yaml latest.yml GET /usage/concurrency
openapi: 3.0.1
info:
  title: Cartesia API
  version: 0.0.1
servers:
  - url: https://api.cartesia.ai
    description: Production
security: []
paths:
  /usage/concurrency:
    get:
      tags:
        - Usage
      summary: Get Concurrency History
      description: Returns your peak concurrency in five-minute buckets.
      operationId: usage_concurrency
      parameters:
        - $ref: '#/components/parameters/CartesiaVersionHeader'
        - name: start_ts
          in: query
          description: >-
            Start of the time window, as an RFC 3339 datetime (with timezone).
            Buckets that start at or after this time are returned. History is
            kept for 31 days, so buckets older than that aren't returned.
          required: true
          schema:
            type: string
            format: date-time
            example: '2026-11-09T17:00:00Z'
        - name: end_ts
          in: query
          description: >-
            End of the time window, as an RFC 3339 datetime (with timezone).
            Buckets that start before this time are returned. Must be after
            `start_ts`, and `start_ts` to `end_ts` cannot span more than 31
            days.
          required: true
          schema:
            type: string
            format: date-time
            example: '2026-11-09T17:15:00Z'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageConcurrencyHistoryResponse'
              example:
                data:
                  - start_ts: '2026-11-09T17:00:00.000Z'
                    end_ts: '2026-11-09T17:05:00.000Z'
                    tts_requests: 4
                    tts_websockets: 6
                    stt_requests: 2
                    stt_websockets: 2
                    agent_calls: 0
                  - start_ts: '2026-11-09T17:05:00.000Z'
                    end_ts: '2026-11-09T17:10:00.000Z'
                    tts_requests: 7
                    tts_websockets: 9
                    stt_requests: 3
                    stt_websockets: 3
                    agent_calls: 1
                  - start_ts: '2026-11-09T17:10:00.000Z'
                    end_ts: '2026-11-09T17:15:00.000Z'
                    tts_requests: 5
                    tts_websockets: 9
                    stt_requests: 1
                    stt_websockets: 1
                    agent_calls: 1
      security:
        - AdminAPIKeyAuth: []
components:
  parameters:
    CartesiaVersionHeader:
      name: Cartesia-Version
      in: header
      description: API version header.
      required: true
      schema:
        type: string
        format: date
        example: '2026-08-14'
        default: '2026-08-14'
        enum:
          - '2026-08-14'
  schemas:
    UsageConcurrencyHistoryResponse:
      title: UsageConcurrencyHistoryResponse
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/UsageConcurrencyHistoryPoint'
          description: >-
            Buckets in chronological order. Buckets with no recorded concurrency
            are left out, not returned as zeros.
      required:
        - data
    UsageConcurrencyHistoryPoint:
      title: UsageConcurrencyHistoryPoint
      type: object
      description: >-
        The highest concurrency seen in one five-minute bucket.

        The requests and WebSockets counters overlap, because work over a
        WebSocket counts in both. Don't add them together.
      properties:
        start_ts:
          type: string
          format: date-time
          description: Start of the five-minute bucket.
        end_ts:
          type: string
          format: date-time
          description: End of the five-minute bucket.
        tts_requests:
          type: integer
          description: >-
            Concurrent TTS generations. Counts toward your TTS concurrency
            limit.
        tts_websockets:
          type: integer
          description: >-
            Open TTS WebSocket connections. Counts toward your TTS WebSocket
            limit.
        stt_requests:
          type: integer
          description: >-
            Concurrent transcription streams. Counts toward your STT concurrency
            limit.
        stt_websockets:
          type: integer
          description: Open STT WebSocket connections.
        agent_calls:
          type: integer
          description: Concurrent agent calls, inbound, web and outbound together.
      required:
        - start_ts
        - end_ts
        - tts_requests
        - tts_websockets
        - stt_requests
        - stt_websockets
        - agent_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).
      x-default: $CARTESIA_ADMIN_API_KEY

````