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

# Get usage breakdown

> Ops grouped by source, workflow, or day. Defaults to the current period. At most 400 days per request.

Ops grouped by `source` (MCP, API, SDK, agent, scheduled workflows), by `workflow`, or by `day`.


## OpenAPI

````yaml GET /v2/usage/breakdown
openapi: 3.1.0
info:
  title: OpenNous REST API
  version: 2.0.0
  description: >-
    Read and write the OpenNous revenue context graph over HTTP. Authenticate
    with a workspace API key.
servers:
  - url: https://api.opennous.cloud
    description: OpenNous Cloud
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: People
  - name: Accounts
  - name: Deals
  - name: Notes
  - name: Attention
  - name: Insights
  - name: Enrich & score
  - name: Organization
  - name: Workflows
  - name: Webhooks
    description: >-
      Subscribe to events and have them pushed to your own stack, with the
      account record attached.
  - name: Usage
paths:
  /v2/usage/breakdown:
    get:
      tags:
        - Usage
      summary: Get usage breakdown
      description: >-
        Ops grouped by source, workflow, or day. Defaults to the current period.
        At most 400 days per request.
      operationId: getUsageBreakdown
      parameters:
        - name: by
          in: query
          required: false
          schema:
            type: string
            enum:
              - source
              - workflow
              - day
            default: source
          description: How to group.
        - name: from
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: Start. Defaults to the period start.
        - name: to
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: End. Defaults to now.
      responses:
        '200':
          description: The breakdown.
          content:
            application/json:
              schema:
                type: object
                properties:
                  by:
                    type: string
                  from:
                    type: string
                  to:
                    type: string
                  rows:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type:
                            - string
                            - 'null'
                        label:
                          type: string
                        ops:
                          type: integer
                        billed_ops:
                          type: integer
                  total:
                    type: integer
                  billed_total:
                    type: integer
                  truncated:
                    type: boolean
                    description: Present when more than 50,000 log rows were in range.
              example:
                by: source
                from: '2026-09-01T00:00:00Z'
                to: '2026-09-30T10:00:00Z'
                rows:
                  - key: mcp
                    label: MCP
                    ops: 1210
                    billed_ops: 1210
                  - key: api
                    label: API
                    ops: 630
                    billed_ops: 630
                total: 1840
                billed_total: 1840
        '400':
          description: A bad query parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unknown_query_param:
                  summary: unknown_query_param
                  value:
                    error: unknown_query_param
                    detail: 'unsupported query param(s): foo'
                    supported:
                      - by
                      - from
                      - to
                invalid_by:
                  summary: invalid_by
                  value:
                    error: invalid_by
                    supported:
                      - source
                      - workflow
                      - day
                invalid_from:
                  summary: invalid_from
                  value:
                    error: invalid_from
                invalid_range:
                  summary: invalid_range
                  value:
                    error: invalid_range
                range_too_large:
                  summary: range_too_large
                  value:
                    error: range_too_large
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    Error:
      type: object
      description: >-
        Every error response. `error` is a stable machine code. Some errors add
        fields such as `detail`, `supported`, `max`, or `reason`.
      required:
        - error
      properties:
        error:
          type: string
          description: Machine-readable error code.
        detail:
          type: string
          description: Human-readable explanation, when there is one.
      additionalProperties: true
  responses:
    Unauthorized:
      description: Missing, unknown, or expired API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing:
              summary: api_key_required
              value:
                error: api_key_required
            invalid:
              summary: invalid_api_key
              value:
                error: invalid_api_key
            expired:
              summary: api_key_expired
              value:
                error: api_key_expired
                detail: >-
                  This API key has expired. Create or rotate a key to get a
                  fresh one.
    RateLimited:
      description: More than 600 requests in a minute on this key.
      headers:
        RateLimit-Limit:
          schema:
            type: integer
          description: Requests allowed per window.
        RateLimit-Remaining:
          schema:
            type: integer
          description: Requests left in the window.
        RateLimit-Reset:
          schema:
            type: integer
          description: Seconds until the window resets.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: rate_limited
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: internal_error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Workspace API key. Create one in **Settings → API keys**.
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: The same key, sent as a header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.