Clarity · Schema

SummaryResponse

Artificial IntelligenceCustomer ExperienceAI AgentsEnterprise

Properties

Name Type Description
from string
to string
current object
previous object
by_surface object
View JSON Schema on GitHub

JSON Schema

onclarity-com-src-managed-agents-costs-schemas-summary-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onclarity-com/json-schema/onclarity-com-src-managed-agents-costs-schemas-summary-response-schema.json",
  "title": "SummaryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onclarity-com-agent-costs-api-openapi.yml#/components/schemas/src__managed_agents__costs__schemas__SummaryResponse",
  "properties": {
    "from": {
      "type": "string",
      "format": "date-time",
      "title": "From"
    },
    "to": {
      "type": "string",
      "format": "date-time",
      "title": "To"
    },
    "current": {
      "$ref": "#/$defs/PeriodSummary"
    },
    "previous": {
      "$ref": "#/$defs/PeriodSummary"
    },
    "by_surface": {
      "additionalProperties": {
        "$ref": "#/$defs/CostTotals"
      },
      "type": "object",
      "title": "By Surface"
    }
  },
  "type": "object",
  "required": [
    "from",
    "to",
    "current",
    "previous",
    "by_surface"
  ],
  "$defs": {
    "CostTotals": {
      "properties": {
        "input_tokens": {
          "type": "integer",
          "title": "Input Tokens",
          "default": 0
        },
        "output_tokens": {
          "type": "integer",
          "title": "Output Tokens",
          "default": 0
        },
        "cache_read_tokens": {
          "type": "integer",
          "title": "Cache Read Tokens",
          "default": 0
        },
        "cache_5m_tokens": {
          "type": "integer",
          "title": "Cache 5M Tokens",
          "default": 0
        },
        "cache_1h_tokens": {
          "type": "integer",
          "title": "Cache 1H Tokens",
          "default": 0
        },
        "total_tokens": {
          "type": "integer",
          "title": "Total Tokens",
          "default": 0
        },
        "runtime_seconds": {
          "type": "number",
          "title": "Runtime Seconds",
          "default": 0.0
        },
        "usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Usd"
        },
        "unpriced_tokens": {
          "type": "integer",
          "title": "Unpriced Tokens",
          "default": 0
        },
        "list_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "List Usd"
        }
      },
      "type": "object",
      "title": "CostTotals",
      "description": "Token deltas + billed runtime + priced dollars for one bucket.\n\n``usd`` is ``None`` only when NOTHING in the bucket was priceable; ``unpriced_tokens``\ncounts tokens whose model had no pricing rule (surfaced, never silently $0)."
    },
    "PeriodSummary": {
      "properties": {
        "totals": {
          "$ref": "#/$defs/CostTotals"
        },
        "sessions": {
          "type": "integer",
          "title": "Sessions"
        },
        "list_priced_sessions": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "List Priced Sessions"
        }
      },
      "type": "object",
      "required": [
        "totals",
        "sessions"
      ],
      "title": "PeriodSummary"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/onclarity-com-src-managed-agents-costs-schemas-summary-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?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. See our Privacy Policy and Terms.

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