Vertesia · Schema

CostAnalyticsQuery

CompanyDigital ExperiencePerformance MonitoringAnalyticsContent Delivery

Properties

Name Type Description
from stringnumber Start time (ISO string or epoch ms)
to stringnumber End time (ISO string or epoch ms)
group_by string Group results by this dimension. `agent_run` groups by root agent run, including the calls of its sub-agents; `workflow_run` groups by Temporal workflow run, which separates each sub-agent.
resolution string Time series resolution
model string Filter by model pattern
environment_id string Filter by environment ID
provider string Filter by provider
service_tier string Filter by resolved processing tier
project_id string Filter by project ID (optional, for org scope)
workflow_id string Filter by workflow / agent run ID
workflow_run_id string Filter by Temporal workflow run ID
run_id string Filter by interaction execution run ID
agent_run_id string Filter by agent run ID
agent_only boolean Restrict usage to agent runs and their attributed nested/background inference. Excludes standalone interactions and non-agent workflows. Defaults to false.
interaction_id string Filter by interaction id: stored ObjectId or namespaced in-code id
principal_id string Filter by principal (bare user or API key id; matched against the suffix of principal_id)
account_id string Filter by account ID (set automatically by server)
scope string Scope: 'project' (default, current project) or 'org' (all projects in account)
pricing_source string Pricing source: 'list' (latest daily prices) or 'historical' (daily effective prices over the query range). Default: 'list'
no_cache boolean Skip cache and force fresh query
View JSON Schema on GitHub

JSON Schema

vertesiahq-cost-analytics-query-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vertesiahq/json-schema/vertesiahq-cost-analytics-query-schema.json",
  "title": "CostAnalyticsQuery",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vertesiahq-costs-api-openapi.yml#/components/schemas/CostAnalyticsQuery",
  "type": "object",
  "properties": {
    "from": {
      "type": [
        "string",
        "number"
      ],
      "description": "Start time (ISO string or epoch ms)"
    },
    "to": {
      "type": [
        "string",
        "number"
      ],
      "description": "End time (ISO string or epoch ms)"
    },
    "group_by": {
      "type": "string",
      "enum": [
        "model",
        "environment",
        "account",
        "project",
        "project_tag",
        "provider",
        "service_tier",
        "interaction",
        "workflow",
        "agent_run",
        "workflow_run"
      ],
      "description": "Group results by this dimension. `agent_run` groups by root agent run, including the calls of its sub-agents; `workflow_run` groups by Temporal workflow run, which separates each sub-agent."
    },
    "resolution": {
      "type": "string",
      "enum": [
        "hour",
        "day",
        "week",
        "month"
      ],
      "description": "Time series resolution"
    },
    "model": {
      "type": "string",
      "description": "Filter by model pattern"
    },
    "environment_id": {
      "type": "string",
      "description": "Filter by environment ID"
    },
    "provider": {
      "type": "string",
      "description": "Filter by provider"
    },
    "service_tier": {
      "type": "string",
      "description": "Filter by resolved processing tier"
    },
    "project_id": {
      "type": "string",
      "description": "Filter by project ID (optional, for org scope)"
    },
    "workflow_id": {
      "type": "string",
      "description": "Filter by workflow / agent run ID"
    },
    "workflow_run_id": {
      "type": "string",
      "description": "Filter by Temporal workflow run ID"
    },
    "run_id": {
      "type": "string",
      "description": "Filter by interaction execution run ID"
    },
    "agent_run_id": {
      "type": "string",
      "description": "Filter by agent run ID"
    },
    "agent_only": {
      "type": "boolean",
      "description": "Restrict usage to agent runs and their attributed nested/background inference. Excludes standalone interactions and non-agent workflows. Defaults to false."
    },
    "interaction_id": {
      "type": "string",
      "description": "Filter by interaction id: stored ObjectId or namespaced in-code id"
    },
    "principal_id": {
      "type": "string",
      "description": "Filter by principal (bare user or API key id; matched against the suffix of principal_id)"
    },
    "account_id": {
      "type": "string",
      "description": "Filter by account ID (set automatically by server)"
    },
    "scope": {
      "type": "string",
      "enum": [
        "project",
        "org"
      ],
      "description": "Scope: 'project' (default, current project) or 'org' (all projects in account)"
    },
    "pricing_source": {
      "type": "string",
      "enum": [
        "list",
        "historical"
      ],
      "description": "Pricing source: 'list' (latest daily prices) or 'historical' (daily effective prices over the query range). Default: 'list'"
    },
    "no_cache": {
      "type": "boolean",
      "description": "Skip cache and force fresh query"
    }
  },
  "additionalProperties": false
}

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/vertesiahq-cost-analytics-query"
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.