{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlasburn-com/json-schema/atlasburn-com-post-api-ingest-request-schema.json",
  "title": "PostApiIngestRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/atlasburn-com-openapi-generated.yml#/components/schemas/PostApiIngestRequest",
  "type": "object",
  "properties": {
    "apiKey": {
      "type": "string",
      "description": "Organization API key prefixed with abn_"
    },
    "events": {
      "type": "array",
      "description": "Array of event objects"
    },
    "events[].model": {
      "type": "string",
      "description": "Model name, e.g., gpt-4o-mini"
    },
    "events[].usage": {
      "type": "object",
      "description": "Token usage details"
    },
    "events[].usage.prompt_tokens": {
      "type": "integer",
      "description": "Number of prompt tokens"
    },
    "events[].usage.completion_tokens": {
      "type": "integer",
      "description": "Number of completion tokens"
    },
    "events[].timestamp": {
      "type": "string",
      "description": "ISO‑8601 timestamp of the event"
    },
    "events[].eventId": {
      "type": "string",
      "description": "Unique identifier for the event"
    },
    "events[].featureId": {
      "type": "string",
      "description": "Feature identifier, e.g., chat-assistant"
    }
  },
  "required": [
    "apiKey",
    "events",
    "events[].model",
    "events[].usage",
    "events[].usage.prompt_tokens",
    "events[].usage.completion_tokens",
    "events[].timestamp",
    "events[].eventId",
    "events[].featureId"
  ]
}