Cayra · Schema

UsageEventResponse

Response after persisting a usage event.

Artificial IntelligenceEnterpriseDecision IntelligenceERPDatabase

Properties

Name Type Description
success boolean
balance object
daily_usage object
View JSON Schema on GitHub

JSON Schema

cayra-io-usage-event-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-usage-event-response-schema.json",
  "title": "UsageEventResponse",
  "description": "Response after persisting a usage event.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cayra-io-usage-api-openapi.yml#/components/schemas/UsageEventResponse",
  "properties": {
    "success": {
      "type": "boolean",
      "title": "Success",
      "default": true
    },
    "balance": {
      "$ref": "#/$defs/UsageBalanceSummary"
    },
    "daily_usage": {
      "$ref": "#/$defs/DailyUsageEntry"
    }
  },
  "type": "object",
  "required": [
    "balance",
    "daily_usage"
  ],
  "$defs": {
    "DailyUsageEntry": {
      "properties": {
        "usage_date": {
          "type": "string",
          "format": "date",
          "title": "Usage Date"
        },
        "model_name": {
          "type": "string",
          "title": "Model Name"
        },
        "input_tokens": {
          "type": "integer",
          "title": "Input Tokens"
        },
        "output_tokens": {
          "type": "integer",
          "title": "Output Tokens"
        },
        "total_cost": {
          "type": "number",
          "title": "Total Cost"
        }
      },
      "type": "object",
      "required": [
        "usage_date",
        "model_name",
        "input_tokens",
        "output_tokens",
        "total_cost"
      ],
      "title": "DailyUsageEntry",
      "description": "Aggregated usage entry."
    },
    "UsageBalanceSummary": {
      "properties": {
        "license_id": {
          "type": "string",
          "format": "uuid",
          "title": "License Id"
        },
        "current_balance": {
          "type": "number",
          "title": "Current Balance"
        },
        "currency": {
          "type": "string",
          "title": "Currency"
        },
        "allow_external_api": {
          "type": "boolean",
          "title": "Allow External Api"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "license_id",
        "current_balance",
        "currency",
        "allow_external_api",
        "updated_at"
      ],
      "title": "UsageBalanceSummary",
      "description": "Balance information for a license."
    }
  }
}

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/cayra-io-usage-event-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. 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.