PostHog · Schema

LLMTrace

A/B TestingAnalyticsFeature FlagsOpen-SourceProduct AnalyticsSession Recording

Properties

Name Type Description
aiSessionId string
createdAt string
distinctId string
errorCount number
events array
id string
inputCost number
inputState object
inputTokens number
isSupportTrace boolean
outputCost number
outputState object
outputTokens number
person object
requestCost number
tools array
totalCost number
totalLatency number
traceName string
webSearchCost number
View JSON Schema on GitHub

JSON Schema

posthog-llmtrace-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LLMTrace",
  "title": "LLMTrace",
  "additionalProperties": false,
  "properties": {
    "aiSessionId": {
      "default": null,
      "title": "Aisessionid",
      "type": "string",
      "nullable": true
    },
    "createdAt": {
      "title": "Createdat",
      "type": "string"
    },
    "distinctId": {
      "title": "Distinctid",
      "type": "string"
    },
    "errorCount": {
      "default": null,
      "title": "Errorcount",
      "type": "number",
      "nullable": true
    },
    "events": {
      "items": {
        "$ref": "#/components/schemas/LLMTraceEvent"
      },
      "title": "Events",
      "type": "array"
    },
    "id": {
      "title": "Id",
      "type": "string"
    },
    "inputCost": {
      "default": null,
      "title": "Inputcost",
      "type": "number",
      "nullable": true
    },
    "inputState": {
      "default": null,
      "title": "Inputstate",
      "nullable": true
    },
    "inputTokens": {
      "default": null,
      "title": "Inputtokens",
      "type": "number",
      "nullable": true
    },
    "isSupportTrace": {
      "default": null,
      "title": "Issupporttrace",
      "type": "boolean",
      "nullable": true
    },
    "outputCost": {
      "default": null,
      "title": "Outputcost",
      "type": "number",
      "nullable": true
    },
    "outputState": {
      "default": null,
      "title": "Outputstate",
      "nullable": true
    },
    "outputTokens": {
      "default": null,
      "title": "Outputtokens",
      "type": "number",
      "nullable": true
    },
    "person": {
      "default": null,
      "allOf": [
        {
          "$ref": "#/components/schemas/LLMTracePerson"
        }
      ],
      "nullable": true
    },
    "requestCost": {
      "default": null,
      "title": "Requestcost",
      "type": "number",
      "nullable": true
    },
    "tools": {
      "default": null,
      "title": "Tools",
      "items": {
        "type": "string"
      },
      "type": "array",
      "nullable": true
    },
    "totalCost": {
      "default": null,
      "title": "Totalcost",
      "type": "number",
      "nullable": true
    },
    "totalLatency": {
      "default": null,
      "title": "Totallatency",
      "type": "number",
      "nullable": true
    },
    "traceName": {
      "default": null,
      "title": "Tracename",
      "type": "string",
      "nullable": true
    },
    "webSearchCost": {
      "default": null,
      "title": "Websearchcost",
      "type": "number",
      "nullable": true
    }
  },
  "required": [
    "createdAt",
    "distinctId",
    "events",
    "id"
  ],
  "type": "object"
}

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/posthog-llmtrace"
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 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.