{
  "openapi": "3.0.0",
  "paths": {
    "/v1/account": {
      "get": {
        "operationId": "AccountController_getAccount",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Get account details",
        "tags": [
          "accounts"
        ]
      }
    },
    "/v1/topics": {
      "get": {
        "operationId": "TopicsController_getTopics",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TopicsListResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "List topics",
        "tags": [
          "topics"
        ]
      }
    },
    "/v1/recommendations": {
      "get": {
        "operationId": "RecommendationsController_getRecommendations",
        "parameters": [
          {
            "name": "take",
            "required": false,
            "in": "query",
            "schema": {
              "maximum": 100,
              "exclusiveMinimum": true,
              "default": 50,
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "skip",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "types",
            "required": false,
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "CONTENT",
                    "BLOG",
                    "TECHNICAL",
                    "PR",
                    "THIRD_PARTY"
                  ]
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "CONTENT",
                      "BLOG",
                      "TECHNICAL",
                      "PR",
                      "THIRD_PARTY"
                    ]
                  }
                }
              ]
            }
          },
          {
            "name": "statuses",
            "required": false,
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "ACTIVE",
                    "IN_PROGRESS",
                    "DISMISSED"
                  ]
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "IN_PROGRESS",
                      "DISMISSED"
                    ]
                  }
                }
              ]
            }
          },
          {
            "name": "topicIds",
            "required": false,
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              ]
            }
          },
          {
            "name": "createdAfter",
            "required": false,
            "in": "query",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationsListResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "List recommendations",
        "tags": [
          "recommendations"
        ]
      }
    },
    "/v1/prompts": {
      "get": {
        "operationId": "PromptsController_getPrompts",
        "parameters": [
          {
            "name": "take",
            "required": false,
            "in": "query",
            "schema": {
              "maximum": 1000,
              "exclusiveMinimum": true,
              "default": 50,
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "skip",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "branded",
            "required": false,
            "in": "query",
            "description": "Filter by branded prompts. Omit for all, true for branded-only, false for non-branded-only.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptsListResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "List prompts",
        "tags": [
          "prompts"
        ]
      }
    },
    "/v1/prompts/raw-responses/available": {
      "get": {
        "operationId": "RawResponsesController_getAvailable",
        "parameters": [
          {
            "name": "take",
            "required": false,
            "in": "query",
            "schema": {
              "maximum": 1000,
              "exclusiveMinimum": true,
              "default": 50,
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "skip",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "promptId",
            "required": false,
            "in": "query",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "topicIds",
            "required": false,
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              ]
            }
          },
          {
            "name": "provider",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "GEMINI",
                "OPENAI",
                "ANTHROPIC",
                "PERPLEXITY",
                "GROK",
                "GOOGLE_AI_MODE",
                "GOOGLE_AI_OVERVIEW",
                "COPILOT",
                "DEEPSEEK",
                "MUSE"
              ]
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date",
            "required": false,
            "in": "query",
            "schema": {
              "format": "date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvailableRawResponsesResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "List available raw responses",
        "tags": [
          "raw-responses"
        ]
      }
    },
    "/v1/prompts/{promptId}/raw-responses": {
      "get": {
        "operationId": "RawResponsesController_getRawResponse",
        "parameters": [
          {
            "name": "promptId",
            "required": true,
            "in": "path",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "date",
            "required": true,
            "in": "query",
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "GEMINI",
                "OPENAI",
                "ANTHROPIC",
                "PERPLEXITY",
                "GROK",
                "GOOGLE_AI_MODE",
                "GOOGLE_AI_OVERVIEW",
                "COPILOT",
                "DEEPSEEK",
                "MUSE"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetRawResponseResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Get raw response for a prompt",
        "tags": [
          "raw-responses"
        ]
      }
    },
    "/v1/competitors": {
      "get": {
        "operationId": "CompetitorsController_getCompetitors",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompetitorsListResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "List competitors",
        "tags": [
          "competitors"
        ]
      }
    },
    "/v1/analytics/brands/mentions": {
      "post": {
        "description": "Returns a time series of how often your brand and tracked competitors appear in AI search engine answers",
        "operationId": "AnalyticsController_getBrandsMentions",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimeSeriesRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeSeriesResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Brand mention trends",
        "tags": [
          "analytics"
        ]
      }
    },
    "/v1/analytics/brands/overall-visibility": {
      "post": {
        "description": "Returns a time series of overall visibility (mentioned or cited) for your brand and tracked competitors in AI search engine answers",
        "operationId": "AnalyticsController_getBrandsOverallVisibility",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimeSeriesRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeSeriesResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Brand overall visibility trends",
        "tags": [
          "analytics"
        ]
      }
    },
    "/v1/analytics/brands/citations": {
      "post": {
        "description": "Returns a time series of how often your brand and tracked competitors are cited in AI search engine answers",
        "operationId": "AnalyticsController_getBrandsCitations",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimeSeriesRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeSeriesResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Brand citation trends",
        "tags": [
          "analytics"
        ]
      }
    },
    "/v1/analytics/brands/rank": {
      "post": {
        "description": "Returns a time series of your brand and tracked competitors ranking in AI search engine answers",
        "operationId": "AnalyticsController_getBrandsRank",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimeSeriesRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeSeriesResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Brand rank trends",
        "tags": [
          "analytics"
        ]
      }
    },
    "/v1/analytics/sources": {
      "post": {
        "description": "Returns the domains or URLs most frequently cited in AI search answers for your account, ranked by citation volume",
        "operationId": "AnalyticsController_getSourceAnalysis",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourceAnalysisRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourceAnalysisResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Top cited sources",
        "tags": [
          "analytics"
        ]
      }
    },
    "/v1/traffic/sdk/captured-actions": {
      "post": {
        "description": "Returns AI-referred events captured on your domain — any event type (page views, autocapture, custom) — each with its AI referrer (`ai_provider`) and the raw captured properties. **Beta:** the response shape may change.",
        "operationId": "SdkTrafficController_getCapturedActions",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CapturedActionsRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapturedActionsResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Export captured actions",
        "tags": [
          "traffic"
        ],
        "x-stability": "beta"
      }
    },
    "/v1/auth/accesskey/exchange": {
      "post": {
        "tags": [
          "authentication"
        ],
        "summary": "Exchange a static API key for a short-lived session JWT.",
        "description": "Send your static API key as a Bearer token. Returns a short-lived session JWT to use on all subsequent API requests.",
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session JWT issued.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "keyId",
                    "sessionJwt"
                  ],
                  "properties": {
                    "keyId": {
                      "type": "string",
                      "description": "Identifier of the static key used."
                    },
                    "sessionJwt": {
                      "type": "string",
                      "description": "Bearer token for subsequent API calls."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Static key is missing, invalid, or revoked."
          }
        }
      }
    }
  },
  "info": {
    "title": "Limy API",
    "description": "Limy public API",
    "version": "1.0",
    "contact": {}
  },
  "tags": [
    {
      "name": "authentication"
    },
    {
      "name": "accounts"
    },
    {
      "name": "competitors"
    },
    {
      "name": "prompts"
    },
    {
      "name": "raw-responses"
    },
    {
      "name": "topics"
    },
    {
      "name": "recommendations"
    },
    {
      "name": "analytics"
    },
    {
      "name": "traffic"
    }
  ],
  "servers": [],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {
      "AccountResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "name",
          "domains"
        ]
      },
      "TopicsListResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ]
            }
          }
        },
        "required": [
          "data"
        ]
      },
      "RecommendationsListResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "insight": {
                  "type": "string",
                  "description": "HTML"
                },
                "description": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "CONTENT",
                    "BLOG",
                    "TECHNICAL",
                    "PR",
                    "THIRD_PARTY"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ACTIVE",
                    "IN_PROGRESS",
                    "DISMISSED"
                  ]
                },
                "topic": {
                  "type": "string",
                  "nullable": true
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "targetUrl": {
                  "type": "string",
                  "nullable": true
                }
              },
              "required": [
                "id",
                "name",
                "insight",
                "description",
                "type",
                "status",
                "topic",
                "createdAt",
                "targetUrl"
              ]
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "take": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "skip": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "take",
              "skip",
              "hasMore"
            ]
          }
        },
        "required": [
          "data",
          "pagination"
        ]
      },
      "PromptsListResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "prompt": {
                  "type": "string"
                },
                "topicId": {
                  "type": "string",
                  "format": "uuid"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "prompt",
                "topicId",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "take": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "skip": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "take",
              "skip",
              "hasMore"
            ]
          }
        },
        "required": [
          "data",
          "pagination"
        ]
      },
      "AvailableRawResponsesResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "runId": {
                  "type": "string",
                  "format": "uuid"
                },
                "promptId": {
                  "type": "string",
                  "format": "uuid"
                },
                "provider": {
                  "type": "string",
                  "enum": [
                    "GEMINI",
                    "OPENAI",
                    "ANTHROPIC",
                    "PERPLEXITY",
                    "GROK",
                    "GOOGLE_AI_MODE",
                    "GOOGLE_AI_OVERVIEW",
                    "COPILOT",
                    "DEEPSEEK",
                    "MUSE"
                  ]
                },
                "region": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                }
              },
              "required": [
                "runId",
                "promptId",
                "provider",
                "region",
                "date"
              ]
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "take": {
                "type": "integer",
                "exclusiveMinimum": true,
                "maximum": 9007199254740991,
                "minimum": 0
              },
              "skip": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "take",
              "skip",
              "hasMore"
            ]
          }
        },
        "required": [
          "data",
          "pagination"
        ]
      },
      "GetRawResponseResponseDto": {
        "type": "object",
        "properties": {
          "promptId": {
            "type": "string",
            "format": "uuid"
          },
          "date": {
            "type": "string"
          },
          "responses": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string",
                  "enum": [
                    "GEMINI",
                    "OPENAI",
                    "ANTHROPIC",
                    "PERPLEXITY",
                    "GROK",
                    "GOOGLE_AI_MODE",
                    "GOOGLE_AI_OVERVIEW",
                    "COPILOT",
                    "DEEPSEEK",
                    "MUSE"
                  ]
                },
                "region": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "provider",
                "region",
                "content"
              ]
            }
          }
        },
        "required": [
          "promptId",
          "date",
          "responses"
        ]
      },
      "CompetitorsListResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "id",
                "name",
                "domains"
              ]
            }
          }
        },
        "required": [
          "data"
        ]
      },
      "TimeSeriesRequestDto": {
        "type": "object",
        "properties": {
          "interval": {
            "type": "string",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ]
          },
          "filters": {
            "type": "object",
            "properties": {
              "timeRange": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "to": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "from",
                  "to"
                ]
              },
              "providers": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "GEMINI",
                    "OPENAI",
                    "ANTHROPIC",
                    "PERPLEXITY",
                    "GROK",
                    "GOOGLE_AI_MODE",
                    "GOOGLE_AI_OVERVIEW",
                    "COPILOT",
                    "DEEPSEEK",
                    "MUSE"
                  ]
                }
              },
              "topics": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              },
              "promptIds": {
                "description": "Restrict the metric to these prompts. Mutually exclusive with topics.",
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "regions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "minLength": 2,
                      "maxLength": 2,
                      "pattern": "^[A-Za-z]{2}$",
                      "description": "ISO 3166-1 alpha-2 country code (case-insensitive). "
                    }
                  },
                  "required": [
                    "code"
                  ]
                }
              },
              "branded": {
                "description": "Filter by branded prompts. Omit for all, true for branded-only, false for non-branded-only.",
                "type": "boolean"
              }
            },
            "required": [
              "timeRange"
            ]
          }
        },
        "required": [
          "interval",
          "filters"
        ]
      },
      "TimeSeriesResponseDto": {
        "type": "object",
        "properties": {
          "interval": {
            "type": "string",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ]
          },
          "timeRange": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string",
                "format": "date-time"
              },
              "to": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "from",
              "to"
            ]
          },
          "series": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "value": {
                        "type": "number",
                        "nullable": true
                      }
                    },
                    "required": [
                      "timestamp",
                      "value"
                    ]
                  }
                }
              },
              "required": [
                "id",
                "name",
                "data"
              ]
            }
          }
        },
        "required": [
          "interval",
          "timeRange",
          "series"
        ]
      },
      "SourceAnalysisRequestDto": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "exclusiveMinimum": true,
            "maximum": 100,
            "minimum": 0
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "groupBy": {
            "type": "string",
            "enum": [
              "domain",
              "url"
            ]
          },
          "filters": {
            "type": "object",
            "properties": {
              "timeRange": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "to": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "from",
                  "to"
                ]
              },
              "providers": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "GEMINI",
                    "OPENAI",
                    "ANTHROPIC",
                    "PERPLEXITY",
                    "GROK",
                    "GOOGLE_AI_MODE",
                    "GOOGLE_AI_OVERVIEW",
                    "COPILOT",
                    "DEEPSEEK",
                    "MUSE"
                  ]
                }
              },
              "topics": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              },
              "promptIds": {
                "description": "Restrict the metric to these prompts. Mutually exclusive with topics.",
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "regions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "minLength": 2,
                      "maxLength": 2,
                      "pattern": "^[A-Za-z]{2}$",
                      "description": "ISO 3166-1 alpha-2 country code (case-insensitive). "
                    }
                  },
                  "required": [
                    "code"
                  ]
                }
              },
              "branded": {
                "description": "Filter by branded prompts. Omit for all, true for branded-only, false for non-branded-only.",
                "type": "boolean"
              }
            },
            "required": [
              "timeRange"
            ]
          }
        },
        "required": [
          "limit",
          "offset",
          "groupBy",
          "filters"
        ]
      },
      "SourceAnalysisResponseDto": {
        "type": "object",
        "properties": {
          "groupBy": {
            "type": "string",
            "enum": [
              "domain",
              "url"
            ]
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string"
                },
                "share": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "citations": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "source",
                "share",
                "citations"
              ]
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "exclusiveMinimum": true,
                "maximum": 9007199254740991,
                "minimum": 0
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "total",
              "limit",
              "offset",
              "hasMore"
            ]
          }
        },
        "required": [
          "groupBy",
          "sources",
          "pagination"
        ]
      },
      "CapturedActionsRequestDto": {
        "type": "object",
        "properties": {
          "filters": {
            "type": "object",
            "properties": {
              "timeRange": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Start of the export window (inclusive), ISO 8601 date-time."
                  },
                  "to": {
                    "type": "string",
                    "format": "date-time",
                    "description": "End of the export window (exclusive), ISO 8601 date-time."
                  }
                },
                "required": [
                  "from",
                  "to"
                ]
              },
              "userIds": {
                "description": "Optional list of visitor IDs (distinctId) to filter by. Omit to return all visitors.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "timeRange"
            ]
          },
          "limit": {
            "default": 200,
            "description": "Maximum number of events to return per page (1–1000).",
            "type": "integer",
            "exclusiveMinimum": true,
            "maximum": 1000,
            "minimum": 0
          },
          "cursor": {
            "description": "Opaque keyset cursor from a previous response. Pass `pagination.nextCursor` to fetch the next page; omit for the first page.",
            "type": "string"
          }
        },
        "required": [
          "filters"
        ]
      },
      "CapturedActionsResponseDto": {
        "type": "object",
        "properties": {
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string"
                },
                "event": {
                  "type": "string"
                },
                "timestamp": {
                  "type": "string"
                },
                "team_id": {
                  "type": "number"
                },
                "distinct_id": {
                  "type": "string",
                  "description": "Stable visitor identifier. This is the value matched by the `filters.userIds` request filter."
                },
                "elements_chain": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string"
                },
                "person_id": {
                  "type": "string"
                },
                "person_created_at": {
                  "type": "string"
                },
                "person_properties": {
                  "type": "string"
                },
                "person_mode": {
                  "type": "string"
                },
                "_timestamp": {
                  "type": "string"
                },
                "inserted_at": {
                  "type": "string",
                  "nullable": true
                },
                "ai_provider": {
                  "type": "string",
                  "description": "AI engine that referred the visit (e.g. ChatGPT, Gemini, Perplexity). Only AI-referred events are returned."
                }
              },
              "required": [
                "uuid",
                "event",
                "timestamp",
                "team_id",
                "distinct_id",
                "elements_chain",
                "created_at",
                "person_id",
                "person_created_at",
                "person_properties",
                "person_mode",
                "_timestamp",
                "inserted_at",
                "ai_provider"
              ],
              "additionalProperties": {}
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "nextCursor": {
                "type": "string",
                "nullable": true
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "nextCursor",
              "hasMore"
            ]
          }
        },
        "required": [
          "actions",
          "pagination"
        ]
      }
    }
  }
}