PostHog · Example Payload

Posthog Llm Analytics Text Repr Create Example

A/B TestingAnalyticsFeature FlagsOpen-SourceProduct AnalyticsSession Recording

Posthog Llm Analytics Text Repr Create Example is an example object payload from PostHog, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "llm_analytics_text_repr_create",
  "method": "POST",
  "path": "/api/environments/{project_id}/llm_analytics/text_repr/",
  "summary": "",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "GenerationExample",
      "example": {
        "event_type": "$ai_generation",
        "data": {
          "id": "gen_123",
          "properties": {
            "$ai_input": [
              {
                "role": "user",
                "content": "What is the capital of France?"
              }
            ],
            "$ai_output_choices": [
              {
                "message": {
                  "role": "assistant",
                  "content": "The capital of France is Paris."
                }
              }
            ]
          }
        },
        "options": {
          "max_length": 10000
        }
      }
    },
    {
      "contentType": "application/json",
      "name": "TraceExample",
      "example": {
        "event_type": "$ai_trace",
        "data": {
          "trace": {
            "trace_id": "trace_123",
            "name": "ChatBot Interaction"
          },
          "hierarchy": [
            {
              "id": "gen_1",
              "event": "$ai_generation",
              "children": []
            }
          ]
        }
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "SuccessResponse",
      "example": {
        "text": "INPUT:\n\n[1] USER\n\nWhat is the capital of France?\n\n...",
        "metadata": {
          "event_type": "$ai_generation",
          "event_id": "gen_123",
          "rendering": "detailed",
          "char_count": 150,
          "truncated": false
        }
      }
    }
  ]
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example 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 example
curl "https://apis.io/api/v1/examples/posthog-llm-analytics-text-repr-create-example"
All examples
curl "https://apis.io/api/v1/examples?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.