Togai · Schema

Togai Usage Event

A usage event ingested into Togai for metering and billing purposes.

BillingMeteringUsage-Based PricingRevenue ManagementSoftware-as-a-ServiceFintech

Properties

Name Type Description
id string Unique event identifier (idempotency key)
schemaName string Name of the event schema defining the event structure
accountId string Account ID to attribute the usage to
timestamp string UTC timestamp when the usage event occurred
dimensions object Categorical attributes used for filtering and grouping
attributes object Numeric or measured attributes for metering calculations
View JSON Schema on GitHub

JSON Schema

togai-event-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/togai/json-schema/togai-event-schema.json",
  "title": "Togai Usage Event",
  "description": "A usage event ingested into Togai for metering and billing purposes.",
  "type": "object",
  "required": ["id", "schemaName", "accountId", "timestamp"],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique event identifier (idempotency key)"
    },
    "schemaName": {
      "type": "string",
      "description": "Name of the event schema defining the event structure"
    },
    "accountId": {
      "type": "string",
      "description": "Account ID to attribute the usage to"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "UTC timestamp when the usage event occurred"
    },
    "dimensions": {
      "type": "object",
      "description": "Categorical attributes used for filtering and grouping",
      "additionalProperties": {
        "type": "string"
      }
    },
    "attributes": {
      "type": "object",
      "description": "Numeric or measured attributes for metering calculations",
      "additionalProperties": {
        "oneOf": [
          { "type": "number" },
          { "type": "string" }
        ]
      }
    }
  }
}

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/togai-event"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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