OmniDimension Reseller usage API

Read what your clients used and spent, what you earned on them, and how long your balance and theirs will last. The same figures as the Analytics page in your dashboard. Read-only. Reseller accounts only.

GitHub OpenAPI

Operations 2

GET /reseller/usage Get usage across your clients #
GET /reseller/usage/clients/{organization_id} Get one client's usage #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/omnidim-io:omnidim-io-reseller-usage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

omnidim-io-reseller-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OmniDimension Reseller usage API
  version: '1.0'
  description: 'Public REST API for the OmniDimension voice-agent platform. Use it

    to manage agents, dispatch calls, run bulk-call campaigns, manage

    knowledge bases, attach phone numbers, run agent simulations, and

    administer reseller accounts.'
  contact:
    name: OmniDimension
    url: https://omnidim.io
servers:
- url: https://omnidim.io/api/v1
  description: Production. `https://backend.omnidim.io/api/v1` also works and serves the same API.
security:
- BearerAuth: []
tags:
- name: Reseller usage
  description: 'Read what your clients used and spent, what you earned on them, and how

    long your balance and theirs will last. The same figures as the

    Analytics page in your dashboard. Read-only. Reseller accounts only.'
paths:
  /reseller/usage:
    get:
      tags:
      - Reseller usage
      operationId: getResellerUsage
      summary: Get usage across your clients
      description: 'Your whole book for one period: each client''s minutes, calls, spend

        and the margin you made on it, your totals, how long your balance

        will last, and your recurring revenue.


        Pass `month`, or `date_from` and `date_to`. With neither, you get the

        current month. Days are counted in your account''s timezone, which the

        response returns. A range can span at most 366 days.


        All amounts are in US dollars. Revenue and margin count credit sales

        to your clients in the period. Usage counts what your clients spent

        their credit on. Burn and runway always look at the last 30 days, so

        they do not move with the period you pick.


        Who may call: the reseller account owner or an admin. Any other key

        gets `403`.'
      parameters:
      - name: month
        in: query
        required: false
        schema:
          type: string
          example: 2026-09
        description: A calendar month, as `YYYY-MM`.
      - name: date_from
        in: query
        required: false
        schema:
          type: string
          format: date
        description: First day of a custom range, as `YYYY-MM-DD`. Send with `date_to`.
      - name: date_to
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Last day of a custom range, as `YYYY-MM-DD`. Send with `date_from`.
      responses:
        '200':
          description: Usage and margin across your clients for the period.
          content:
            application/json:
              schema:
                type: object
                properties:
                  reseller_organization_id:
                    type: integer
                  date_from:
                    type: string
                    format: date
                  date_to:
                    type: string
                    format: date
                  timezone:
                    type: string
                    description: The timezone the days are counted in.
                  currency:
                    type: string
                    description: Always `USD`.
                  totals:
                    type: object
                    properties:
                      clients:
                        type: integer
                        description: Your direct clients today.
                      active_clients:
                        type: integer
                        description: Clients with any usage, spend or margin in the period.
                      total_minutes:
                        type: number
                      total_calls:
                        type: integer
                      total_consumption:
                        type: number
                        description: What your clients spent on calls and call features, at the rates you set.
                      total_purchases:
                        type: number
                        description: What your clients spent on phone numbers and channels.
                      total_revenue:
                        type: number
                        description: What your clients paid you for credit.
                      total_wholesale_cost:
                        type: number
                        description: What that credit cost you.
                      total_realized_margin:
                        type: number
                        description: Revenue minus wholesale cost.
                      margin_pct:
                        type: number
                        description: Realized margin as a percent of revenue.
                  pool:
                    type: object
                    description: Your own balance and how fast client sales draw it down.
                    properties:
                      balance:
                        type: number
                      wholesale_charged:
                        type: number
                        description: Wholesale cost of the credit you sold in the period.
                      burn_per_day:
                        type: number
                        description: Average wholesale cost per day over the last `burn_window_days`.
                      burn_window_days:
                        type: integer
                      runway_days:
                        type: number
                        nullable: true
                        description: Days your balance lasts at that rate. `null` when nothing is drawing it down.
                  business:
                    type: object
                    properties:
                      mrr:
                        type: number
                        description: Monthly revenue from your clients' active plan subscriptions.
                      mrr_wholesale:
                        type: number
                      mrr_profit:
                        type: number
                      active_subscriptions:
                        type: integer
                      top_client:
                        type: object
                        nullable: true
                        description: The client that earned you the most in the period. `null` when no client made a profit.
                        properties:
                          organization_id:
                            type: integer
                          name:
                            type: string
                          realized_margin:
                            type: number
                          share_pct:
                            type: number
                            description: Its share of your total realized margin.
                      previous_period_realized_margin:
                        type: number
                        description: Realized margin in the period of the same length just before this one.
                      realized_margin_change_pct:
                        type: number
                        nullable: true
                        description: Change against that period. `null` when the previous period made no profit.
                  clients:
                    type: array
                    items:
                      type: object
                      properties:
                        organization_id:
                          type: integer
                        name:
                          type: string
                        minutes:
                          type: number
                        calls:
                          type: integer
                        consumption:
                          type: number
                        purchases:
                          type: number
                        numbers_spend:
                          type: number
                        channels_spend:
                          type: number
                        realized_margin:
                          type: number
                        balance:
                          type: number
                          description: The client's balance now.
                        runway_days:
                          type: number
                          nullable: true
                          description: Days the client's balance lasts at its last 30 days of usage. `null` when it is not using any.
              example:
                reseller_organization_id: 1234
                date_from: '2026-09-01'
                date_to: '2026-09-30'
                timezone: Asia/Kolkata
                currency: USD
                totals:
                  clients: 2
                  active_clients: 1
                  total_minutes: 412.5
                  total_calls: 380
                  total_consumption: 61.88
                  total_purchases: 3
                  total_revenue: 100
                  total_wholesale_cost: 70
                  total_realized_margin: 30
                  margin_pct: 30
                pool:
                  balance: 250
                  wholesale_charged: 70
                  burn_per_day: 2.33
                  burn_window_days: 30
                  runway_days: 107.3
                business:
                  mrr: 50
                  mrr_wholesale: 35
                  mrr_profit: 15
                  active_subscriptions: 1
                  top_client:
                    organization_id: 5678
                    name: Demo Client
                    realized_margin: 30
                    share_pct: 100
                  previous_period_realized_margin: 24
                  realized_margin_change_pct: 25
                clients:
                - organization_id: 5678
                  name: Demo Client
                  minutes: 412.5
                  calls: 380
                  consumption: 61.88
                  purchases: 3
                  numbers_spend: 3
                  channels_spend: 0
                  realized_margin: 30
                  balance: 38.12
                  runway_days: 18.5
        '400':
          description: The period is not a valid month or day range, or spans more than 366 days.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionError'
              example:
                error: invalid_request
                error_description: Pass month as YYYY-MM, or date_from and date_to as YYYY-MM-DD. A range can span at most 366 days.
                code: invalid_request
                request_id: req_5d9a1f3e8b02
        '403':
          description: The key is not a reseller's, or not the owner or an admin.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionError'
  /reseller/usage/clients/{organization_id}:
    get:
      tags:
      - Reseller usage
      operationId: getResellerClientUsage
      summary: Get one client's usage
      description: 'One client''s statement for a period: its spend by type, its calls

        broken down by day, agent, campaign, number and direction, the numbers

        and channels it bought, and the margin you made on it.


        Takes the same `month`, or `date_from` and `date_to`, as

        `GET /reseller/usage`. All amounts are in US dollars, at the rates

        you set for the client. Minutes are billable minutes. Each breakdown

        lists the biggest spend first, and `by_day` runs oldest first.


        Who may call: the reseller account owner or an admin. A client that is

        not one of your direct clients gets `404`, the same answer as one that

        does not exist.'
      parameters:
      - name: organization_id
        in: path
        required: true
        schema:
          type: integer
        description: The client organization, as listed by `GET /reseller/organizations`.
      - name: month
        in: query
        required: false
        schema:
          type: string
          example: 2026-09
        description: A calendar month, as `YYYY-MM`.
      - name: date_from
        in: query
        required: false
        schema:
          type: string
          format: date
        description: First day of a custom range, as `YYYY-MM-DD`. Send with `date_to`.
      - name: date_to
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Last day of a custom range, as `YYYY-MM-DD`. Send with `date_from`.
      responses:
        '200':
          description: The client's usage and your margin on it for the period.
          content:
            application/json:
              schema:
                type: object
                properties:
                  organization_id:
                    type: integer
                  name:
                    type: string
                  date_from:
                    type: string
                    format: date
                  date_to:
                    type: string
                    format: date
                  timezone:
                    type: string
                  currency:
                    type: string
                    description: Always `USD`.
                  balance:
                    type: number
                    description: The client's balance now.
                  calls:
                    type: integer
                  summary:
                    type: object
                    description: 'Spend by type. `voice_ai` and `telephony` carry `minutes`

                      and `amount`. `phone_numbers`, `channels`, `call_audit`,

                      `asr_eval`, `whatsapp`, `sms`, `email` and

                      `channel_renewal` carry `count` and `amount`. `addons` is

                      one line per add-on. `whatsapp_activity` counts incoming

                      messages and active chats. `total_amount` is the sum of

                      the spend.

                      '
                    additionalProperties: true
                  margin:
                    type: object
                    properties:
                      revenue:
                        type: number
                        description: What the client paid you for credit in the period.
                      wholesale_cost:
                        type: number
                        description: What that credit cost you.
                      realized_margin:
                        type: number
                        description: '`revenue` minus `wholesale_cost`.'
                      bonus:
                        type: number
                        description: Bonus credit you funded on the client's own purchases.
                  by_day:
                    type: array
                    items:
                      $ref: '#/components/schemas/ResellerUsageRow'
                  by_agent:
                    type: array
                    items:
                      $ref: '#/components/schemas/ResellerUsageRow'
                  by_campaign:
                    type: array
                    description: '`campaign_id` is `null` for calls outside a campaign.'
                    items:
                      $ref: '#/components/schemas/ResellerUsageRow'
                  by_number:
                    type: array
                    items:
                      $ref: '#/components/schemas/ResellerUsageRow'
                  by_direction:
                    type: array
                    items:
                      $ref: '#/components/schemas/ResellerUsageRow'
                  purchases:
                    type: object
                    description: 'Each phone number rental and channel purchase in the

                      period. `date` is the day it was paid, in `timezone`.

                      '
                    properties:
                      numbers:
                        type: array
                        items:
                          type: object
                          properties:
                            label:
                              type: string
                            date:
                              type: string
                              format: date
                              nullable: true
                            amount:
                              type: number
                      channels:
                        type: array
                        items:
                          type: object
                          properties:
                            label:
                              type: string
                            date:
                              type: string
                              format: date
                              nullable: true
                            amount:
                              type: number
                            num_channels:
                              type: integer
              example:
                organization_id: 5678
                name: Demo Client
                date_from: '2026-09-01'
                date_to: '2026-09-30'
                timezone: Asia/Kolkata
                currency: USD
                balance: 38.12
                calls: 380
                summary:
                  voice_ai:
                    minutes: 412.5
                    amount: 61.88
                  telephony:
                    minutes: 0
                    amount: 0
                  phone_numbers:
                    count: 1
                    amount: 3
                  channels:
                    count: 0
                    amount: 0
                  total_amount: 64.88
                margin:
                  revenue: 100
                  wholesale_cost: 70
                  realized_margin: 30
                  bonus: 0
                by_agent:
                - agent_id: 901
                  name: Front desk
                  calls: 380
                  minutes: 412.5
                  amount: 61.88
                  telephony_minutes: 0
                  telephony_amount: 0
                  total_amount: 61.88
        '400':
          description: The period is not a valid month or day range, or spans more than 366 days.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionError'
        '403':
          description: The key is not a reseller's, or not the owner or an admin.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionError'
        '404':
          description: The organization is not one of your direct clients.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionError'
              example:
                error: not_found
                error_description: Client organization not found.
                code: client_not_found
                request_id: req_5d9a1f3e8b02
components:
  schemas:
    SessionError:
      type: object
      properties:
        error:
          type: string
          description: Machine-readable error code.
        error_description:
          type: string
          description: Human-readable explanation.
        code:
          type: string
          description: 'Stable, specific reason. Present on the newer endpoints (Voice

            cloning, WhatsApp); older endpoints return only `error`.

            '
        request_id:
          type: string
          description: 'Correlates this response with the server log. Present alongside

            `code`. Also sent as the `X-Request-Id` header.

            '
    ResellerUsageRow:
      type: object
      description: 'One line of a client''s calls in a period. Each breakdown names its line

        by one key: `day`, `agent_id`, `campaign_id`, `phone_number` or

        `direction`.

        '
      properties:
        day:
          type: string
          format: date
        agent_id:
          type: integer
          nullable: true
        campaign_id:
          type: integer
          nullable: true
        phone_number:
          type: string
        direction:
          type: string
        name:
          type: string
          description: The agent, campaign, number or direction. Not on `by_day` lines.
        calls:
          type: integer
        minutes:
          type: number
          description: Billable Voice AI minutes.
        amount:
          type: number
          description: Voice AI spend.
        telephony_minutes:
          type: number
        telephony_amount:
          type: number
        total_amount:
          type: number
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer token authentication. Obtain your API key from the

        OmniDimension dashboard.

        '