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

# Get Consolidated Sub-Organizations Usage

> Returns aggregated meter usage across all sub-organizations for the specified date range and interval.



## OpenAPI

````yaml https://api.useinvent.com/openapi.json get /orgs/{org_id}/orgs/usage
openapi: 3.1.0
info:
  version: 1.0.0
  title: Invent API
servers:
  - url: https://api.useinvent.com
security:
  - bearerAuth: []
paths:
  /orgs/{org_id}/orgs/usage:
    get:
      tags:
        - Orgs Orgs
      summary: Get Consolidated Sub-Organizations Usage
      description: >-
        Returns aggregated meter usage across all sub-organizations for the
        specified date range and interval.
      parameters:
        - schema:
            type: string
          required: true
          description: The ID of the org
          name: org_id
          in: path
        - schema:
            type:
              - string
              - 'null'
            format: date-time
            description: Start date for the usage period
          required: false
          description: Start date for the usage period
          name: from_date
          in: query
        - schema:
            type:
              - string
              - 'null'
            format: date-time
            description: End date for the usage period
          required: false
          description: End date for the usage period
          name: to_date
          in: query
        - schema:
            $ref: '#/components/schemas/MeterIntervalSchema'
          required: true
          description: Meter interval for the usage chart
          name: interval
          in: query
        - schema:
            $ref: '#/components/schemas/MeterEventIdSchema'
          required: false
          description: Meter ID for the organization
          name: type
          in: query
        - schema:
            type: number
          required: false
          description: Page number
          name: page
          in: query
        - schema:
            type: number
          required: false
          description: Number of items to take
          name: take
          in: query
        - schema:
            type: string
          required: false
          description: Next page token (Only used on special endpoints)
          name: next
          in: query
      responses:
        '200':
          description: Per-sub-organization usage grouped by event type and time bucket.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SubOrgUsageItemSchema'
components:
  schemas:
    MeterIntervalSchema:
      type: string
      enum:
        - hour
        - day
        - week
        - month
        - year
      description: Meter interval for the usage chart
    MeterEventIdSchema:
      type: string
      enum:
        - run
        - ai_tokens
        - ai_sst
        - ai_tts
        - ai_embeddings
        - ai_memory_reconcile
        - ai_memory_summarize
        - ai_analysis
        - ai_follow_up_analysis
        - broadcast_whatsapp
        - broadcast_email
        - broadcast_sms
        - broadcast_marketing_whatsapp
        - broadcast_marketing_email
        - broadcast_marketing_sms
        - broadcast_transactional_whatsapp
        - broadcast_transactional_email
        - broadcast_transactional_sms
      description: Meter ID for the organization
    SubOrgUsageItemSchema:
      type: object
      properties:
        org_id:
          type: string
          description: Unique identifier of the sub-organization
        org_name:
          type: string
          description: Name of the sub-organization
        event_name:
          $ref: '#/components/schemas/MeterEventIdSchema'
        amount_credits:
          type: number
          description: Total credits consumed in the time bucket
        amount_monetary:
          type: number
          description: Total monetary amount in the time bucket
        date:
          type:
            - string
            - 'null'
          format: date-time
          description: Start of the time bucket
      required:
        - org_id
        - org_name
        - event_name
        - amount_credits
        - amount_monetary
        - date
      description: Usage data for a single sub-organization in a time bucket
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using your API key

````