{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/honeyhive-ai/json-schema/honeyhive-ai-start-session-request-schema.json",
  "title": "StartSessionRequest",
  "description": "Request body for POST /v1/sessions (bare session object)",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/honeyhive-ai-openapi.json#/components/schemas/StartSessionRequest",
  "type": "object",
  "properties": {
    "session_id": {
      "type": "string",
      "description": "Client-provided session ID (server generates one if omitted)"
    },
    "session_name": {
      "type": "string",
      "description": "Display name for the session"
    },
    "event_name": {
      "type": "string",
      "description": "Fallback name if session_name is not provided"
    },
    "source": {
      "type": "string",
      "description": "Source of the session (e.g., sdk-python)"
    },
    "start_time": {
      "type": "number",
      "description": "Session start time as Unix milliseconds"
    },
    "end_time": {
      "type": "number",
      "description": "Session end time as Unix milliseconds"
    },
    "duration": {
      "type": "number",
      "description": "Session duration in milliseconds"
    },
    "config": {
      "type": "object",
      "additionalProperties": {},
      "description": "Configuration associated with the session"
    },
    "inputs": {
      "type": "object",
      "additionalProperties": {},
      "description": "Input data for the session"
    },
    "outputs": {
      "type": "object",
      "additionalProperties": {},
      "description": "Output data from the session"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {},
      "description": "Arbitrary metadata for the session"
    },
    "user_properties": {
      "type": "object",
      "additionalProperties": {},
      "description": "User properties associated with the session"
    },
    "children_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of child events in this session"
    }
  },
  "additionalProperties": false
}