{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elicit/json-schema/elicit-create-agent-session-response-schema.json",
  "title": "CreateAgentSessionResponse",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elicit-openapi.json#/components/schemas/CreateAgentSessionResponse",
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "Unique identifier for the research agent session."
    },
    "status": {
      "type": "string",
      "const": "processing",
      "description": "Initial status is always processing."
    },
    "url": {
      "type": "string",
      "description": "URL to view the session in the Elicit web interface. Only the owner can continue it."
    },
    "isPublic": {
      "type": "boolean",
      "description": "Whether the session is readable by anyone with its URL, without signing in. Always false: new sessions are private until made public with PUT /api/v2/sessions/{sessionId}/shares/public."
    },
    "projectId": {
      "type": "string",
      "format": "uuid",
      "description": "The project containing the new session. Omitted for standalone sessions."
    },
    "researchDepth": {
      "type": "object",
      "properties": {
        "requested": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "fastest",
            "fast",
            "balanced",
            "smart",
            "smartest",
            null
          ],
          "description": "The researchDepth sent in the request, or null when it was omitted."
        },
        "applied": {
          "type": "string",
          "enum": [
            "fastest",
            "fast",
            "balanced",
            "smart",
            "smartest"
          ],
          "description": "The depth the session runs at. Differs from requested when the account's plan or contract does not allow the requested depth; when requested is null, this is the account default."
        },
        "limitReason": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "basic",
            "plus",
            "pro",
            "contract",
            null
          ],
          "description": "Why the depth was lowered: basic, plus, or pro for a plan limit, contract for an Enterprise contract limit. Null when the session runs at the requested or default depth."
        }
      },
      "required": [
        "requested",
        "applied",
        "limitReason"
      ],
      "description": "The research depth requested and the depth actually applied. Compare applied with requested to detect a plan or contract limit."
    }
  },
  "required": [
    "sessionId",
    "status",
    "url",
    "isPublic",
    "researchDepth"
  ]
}