{"components":{"parameters":{"projectId":{"in":"path","name":"projectId","required":true,"schema":{"$ref":"#/components/schemas/projectId"}}},"schemas":{"AnalyticsErrorResponse":{"properties":{"details":{"description":"Additional details about the error.","items":{"properties":{"message":{"description":"Description of a specific validation or processing error.","type":"string"}},"required":["message"],"type":"object"},"type":"array"},"error":{"description":"Error message describing what went wrong.","type":"string"}},"required":["error"],"type":"object"},"AssistantCallerStatsResponse":{"properties":{"api":{"description":"Number of assistant queries originating from API calls.","type":"number"},"other":{"description":"Number of assistant queries from other sources (e.g., integrations, SDKs).","type":"number"},"total":{"description":"Total assistant queries across all caller types.","type":"number"},"web":{"description":"Number of assistant queries originating from the web (documentation site).","type":"number"}},"required":["api","other","total","web"],"type":"object"},"AssistantConversationsResponse":{"properties":{"conversations":{"description":"List of assistant conversations.","items":{"properties":{"feedback":{"description":"The user's thumbs rating on the assistant's response. `positive` for thumbs up, `negative` for thumbs down, or `null` if the user did not rate the response.","enum":["positive","negative",null],"type":["null","string"]},"id":{"description":"Unique conversation identifier.","type":"string"},"pageUrl":{"description":"Full URL of the documentation page where the conversation started. Null if no page path was captured.","type":["null","string"]},"query":{"description":"The user's question to the assistant.","type":"string"},"queryCategory":{"description":"Auto-assigned category grouping for the conversation, if applicable.","type":["null","string"]},"resolutionStatus":{"description":"Whether the assistant successfully answered this turn. Computed per row: `unanswered` when the assistant marked the question as not covered by the available documentation, otherwise `answered`.","enum":["answered","unanswered"],"type":"string"},"response":{"description":"The assistant's response. For clarifying-question turns, this is the question the assistant asked the user.","type":"string"},"responseType":{"description":"Type of response returned to the user. `answer` is a final answer. `clarifying_question` means the assistant asked the user a follow-up question instead of answering. Defaults to `answer` when not present.","enum":["answer","clarifying_question"],"type":"string"},"sources":{"description":"Documentation pages referenced in the response.","items":{"properties":{"title":{"description":"Title of the referenced documentation page.","type":"string"},"url":{"description":"URL of the referenced documentation page.","type":"string"}},"required":["title","url"],"type":"object"},"type":"array"},"timestamp":{"description":"Timestamp of the user message that started this turn.","type":"string"}},"required":["feedback","id","pageUrl","query","queryCategory","resolutionStatus","response","sources","timestamp"],"type":"object"},"type":"array"},"hasMore":{"description":"Whether additional results are available beyond this page.","type":"boolean"},"nextCursor":{"description":"Cursor to retrieve the next page of results. Null if no more results.","type":["null","string"]}},"required":["conversations","hasMore","nextCursor"],"type":"object"},"AssistantThreadResponse":{"properties":{"createdAt":{"description":"Timestamp when the thread was created.","type":"string"},"messages":{"description":"Ordered list of messages exchanged in the thread.","items":{"properties":{"content":{"description":"The text content of the message.","type":"string"},"createdAt":{"description":"Timestamp when the message was sent.","type":"string"},"id":{"description":"Unique message identifier.","type":"string"},"role":{"description":"Whether the message was sent by the user or the assistant.","enum":["user","assistant"],"type":"string"}},"required":["content","createdAt","id","role"],"type":"object"},"type":"array"},"threadId":{"description":"Assistant conversation thread identifier (ULID).","type":"string"}},"required":["createdAt","messages","threadId"],"type":"object"},"FeedbackGroupedByPageResponse":{"properties":{"feedback":{"description":"Feedback counts aggregated by documentation page path.","items":{"properties":{"code":{"description":"Number of code snippet feedback entries.","type":"number"},"path":{"description":"The documentation page path.","type":"string"},"thumbsDown":{"description":"Number of negative (thumbs down) contextual feedback entries.","type":"number"},"thumbsUp":{"description":"Number of positive (thumbs up) contextual feedback entries.","type":"number"},"total":{"description":"Total feedback entries for this page.","type":"number"}},"required":["code","path","thumbsDown","thumbsUp","total"],"type":"object"},"type":"array"},"hasMore":{"description":"Whether additional results are available beyond this page.","type":"boolean"}},"required":["feedback","hasMore"],"type":"object"},"FeedbackResponse":{"properties":{"feedback":{"description":"List of feedback entries.","items":{"anyOf":[{"description":"Returned when source is `contextual`. Includes whether the user found the page helpful and an optional contact email.","properties":{"comment":{"description":"Text of the user's feedback comment.","type":["null","string"]},"contact":{"description":"Email address the user provided for follow-up.","type":["null","string"]},"createdAt":{"description":"Timestamp when the feedback was submitted.","type":["null","string"]},"helpful":{"description":"Whether the user found the content helpful.","type":"boolean"},"id":{"description":"Unique feedback identifier.","type":"string"},"path":{"description":"The path or URL to the source document.","type":"string"},"source":{"description":"Where the feedback originated. `code_snippet` is feedback on a code block, `contextual` is page-level feedback, `agent` is feedback submitted by a third-party AI agent, `thumbs_only` is a thumbs up/down vote.","enum":["code_snippet","contextual","agent","thumbs_only"],"type":"string"},"status":{"description":"Current review status of the feedback.","enum":["pending","in_progress","resolved","dismissed"],"type":"string"}},"required":["comment","contact","createdAt","helpful","id","path","source","status"],"type":"object"},{"description":"Returned when source is `code_snippet`. Includes the code, filename, and language of the snippet the feedback relates to.","properties":{"code":{"description":"The code snippet the feedback relates to.","type":"string"},"comment":{"description":"Text of the user's feedback comment.","type":["null","string"]},"createdAt":{"description":"Timestamp when the feedback was submitted.","type":["null","string"]},"filename":{"description":"Filename associated with the code snippet.","type":["null","string"]},"id":{"description":"Unique feedback identifier.","type":"string"},"lang":{"description":"Programming language of the code snippet.","type":["null","string"]},"path":{"description":"The path or URL to the source document.","type":"string"},"source":{"description":"Where the feedback originated. `code_snippet` is feedback on a code block, `contextual` is page-level feedback, `agent` is feedback submitted by a third-party AI agent, `thumbs_only` is a thumbs up/down vote.","enum":["code_snippet","contextual","agent","thumbs_only"],"type":"string"},"status":{"description":"Current review status of the feedback.","enum":["pending","in_progress","resolved","dismissed"],"type":"string"}},"required":["code","comment","createdAt","filename","id","lang","path","source","status"],"type":"object"},{"description":"Returned when source is `agent` or `thumbs_only`. Contains base feedback fields only.","properties":{"comment":{"description":"Text of the user's feedback comment.","type":["null","string"]},"createdAt":{"description":"Timestamp when the feedback was submitted.","type":["null","string"]},"id":{"description":"Unique feedback identifier.","type":"string"},"path":{"description":"The path or URL to the source document.","type":"string"},"source":{"description":"Where the feedback originated. `code_snippet` is feedback on a code block, `contextual` is page-level feedback, `agent` is feedback submitted by a third-party AI agent, `thumbs_only` is a thumbs up/down vote.","enum":["code_snippet","contextual","agent","thumbs_only"],"type":"string"},"status":{"description":"Current review status of the feedback.","enum":["pending","in_progress","resolved","dismissed"],"type":"string"}},"required":["comment","createdAt","id","path","source","status"],"type":"object"}]},"type":"array"},"hasMore":{"description":"Whether additional results are available beyond this page.","type":"boolean"},"nextCursor":{"description":"Cursor to retrieve the next page of results. Null if no more results.","type":["null","string"]}},"required":["feedback","hasMore","nextCursor"],"type":"object"},"SearchesResponse":{"properties":{"nextCursor":{"description":"Opaque pagination cursor for the next page. Null if no more results.","type":["null","string"]},"searches":{"description":"Search terms ordered by hit count descending.","items":{"properties":{"ctr":{"description":"Percentage of searches for this term that resulted in a click on a specific search result (clicks ÷ hits × 100). A click includes selecting a result with the pointer or pressing Enter when a result is highlighted. Submitting a query by itself does not count as a click. Clicking the AI assistant in the search bar, or pressing Enter to use it, counts as a search with no click and is not tracked separately in this field.","type":"number"},"hits":{"description":"Number of times this term was searched.","type":"number"},"lastSearchedAt":{"description":"Timestamp of the last time this term was searched.","type":"string"},"searchQuery":{"description":"The search term entered by users.","type":"string"},"topClickedPage":{"description":"The most-clicked result path for this query, if any.","type":["null","string"]}},"required":["ctr","hits","lastSearchedAt","searchQuery","topClickedPage"],"type":"object"},"type":"array"},"totalSearches":{"description":"Total count of search events in the requested date range (sum of all hits, not distinct queries).","minimum":0,"type":"integer"}},"required":["nextCursor","searches","totalSearches"],"type":"object"},"ViewsByPageResponse":{"properties":{"hasMore":{"description":"Whether additional results are available beyond this page.","type":"boolean"},"totals":{"$ref":"#/components/schemas/ViewsTrafficTotals","description":"Site-wide view totals for the date range."},"views":{"description":"Per-page view counts.","items":{"properties":{"ai":{"description":"Content view events on this path from AI bot traffic.","type":"number"},"human":{"description":"Content view events on this path from human traffic.","type":"number"},"path":{"description":"The documentation page path.","type":"string"},"total":{"description":"Total content view events on this path.","type":"number"}},"required":["ai","human","path","total"],"type":"object"},"type":"array"}},"required":["hasMore","totals","views"],"type":"object"},"ViewsTrafficTotals":{"properties":{"ai":{"description":"Site-wide content view events from AI bot traffic.","type":"number"},"human":{"description":"Site-wide content view events from human traffic.","type":"number"},"total":{"description":"Site-wide content view events.","type":"number"}},"required":["ai","human","total"],"type":"object"},"VisitorsByPageResponse":{"properties":{"hasMore":{"description":"Whether additional results are available beyond this page.","type":"boolean"},"totals":{"$ref":"#/components/schemas/VisitorsTrafficTotals","description":"Site-wide unique visitor totals for the date range."},"visitors":{"description":"Per-page visitor counts.","items":{"properties":{"ai":{"description":"Unique visitors from AI bot traffic.","type":"number"},"human":{"description":"Unique visitors from human traffic.","type":"number"},"path":{"description":"The documentation page path.","type":"string"},"total":{"description":"Approximate distinct visitors with any qualifying view on this path (deduplicated across human and AI).","type":"number"}},"required":["ai","human","path","total"],"type":"object"},"type":"array"}},"required":["hasMore","totals","visitors"],"type":"object"},"VisitorsTrafficTotals":{"properties":{"ai":{"description":"Site-wide unique visitors from AI bot traffic.","type":"number"},"human":{"description":"Site-wide unique visitors from human traffic.","type":"number"},"total":{"description":"Site-wide approximate distinct visitors with any qualifying view (deduplicated across human and AI).","type":"number"}},"required":["ai","human","total"],"type":"object"},"projectId":{"description":"Your project ID. Can be copied from the [API keys](https://app.mintlify.com/settings/organization/api-keys) page in your dashboard.","type":"string"}},"securitySchemes":{"bearerAuth":{"description":"The Authorization header expects a Bearer token. Use an admin API key. This is a server-side secret key. Generate one on the [API keys page](https://app.mintlify.com/settings/organization/api-keys) in your dashboard.","scheme":"bearer","type":"http"}}},"info":{"description":"API for exporting documentation analytics data","title":"Mintlify Analytics Export API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/v1/analytics/{projectId}/assistant":{"get":{"description":"Returns paginated AI assistant conversation history\n\nAuthenticate with an admin API key.","parameters":[{"$ref":"#/components/parameters/projectId"},{"in":"query","name":"dateFrom","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format","example":"2024-01-01","type":"string"}},{"in":"query","name":"dateTo","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format. `dateTo` is an exclusive upper limit. Results include dates before, but not on, the specified date.","example":"2024-01-01","type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"default":100,"description":"Max results per page","maximum":1000,"minimum":1,"type":"number"}},{"in":"query","name":"cursor","required":false,"schema":{"description":"Pagination cursor (ULID format)","format":"ulid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantConversationsResponse"}}},"description":"Conversation data with pagination"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Invalid query parameters"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Get assistant conversations","tags":["Analytics"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://api.mintlify.com/v1/analytics/string/assistant?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=100\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://api.mintlify.com/v1/analytics/string/assistant?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=100'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://api.mintlify.com/v1/analytics/string/assistant?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=100\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://api.mintlify.com/v1/analytics/string/assistant?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=100\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/assistant?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=100', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/assistant?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=100', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://api.mintlify.com/v1/analytics/string/assistant?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=100\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://api.mintlify.com/v1/analytics/string/assistant?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=100\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://api.mintlify.com/v1/analytics/string/assistant?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=100\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/analytics/{projectId}/assistant/caller-stats":{"get":{"description":"Returns a breakdown of assistant query counts by caller type (web, API, and other) for the specified date range.\n\nAuthenticate with an admin API key.","parameters":[{"$ref":"#/components/parameters/projectId"},{"in":"query","name":"dateFrom","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format","example":"2024-01-01","type":"string"}},{"in":"query","name":"dateTo","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format. `dateTo` is an exclusive upper limit. Results include dates before, but not on, the specified date.","example":"2024-01-01","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantCallerStatsResponse"}}},"description":"Assistant query counts broken down by caller type"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Invalid query parameters"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Get assistant caller stats","tags":["Analytics"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://api.mintlify.com/v1/analytics/string/assistant/caller-stats?dateFrom=2024-01-01&dateTo=2024-01-01\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://api.mintlify.com/v1/analytics/string/assistant/caller-stats?dateFrom=2024-01-01&dateTo=2024-01-01'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://api.mintlify.com/v1/analytics/string/assistant/caller-stats?dateFrom=2024-01-01&dateTo=2024-01-01\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://api.mintlify.com/v1/analytics/string/assistant/caller-stats?dateFrom=2024-01-01&dateTo=2024-01-01\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/assistant/caller-stats?dateFrom=2024-01-01&dateTo=2024-01-01', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/assistant/caller-stats?dateFrom=2024-01-01&dateTo=2024-01-01', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://api.mintlify.com/v1/analytics/string/assistant/caller-stats?dateFrom=2024-01-01&dateTo=2024-01-01\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://api.mintlify.com/v1/analytics/string/assistant/caller-stats?dateFrom=2024-01-01&dateTo=2024-01-01\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://api.mintlify.com/v1/analytics/string/assistant/caller-stats?dateFrom=2024-01-01&dateTo=2024-01-01\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/analytics/{projectId}/assistant/threads/{threadId}":{"get":{"description":"Returns the full message transcript for a single assistant conversation thread. The thread ID is available from the assistant conversations endpoint, or as the `threadId` query parameter appended to assistant link-mode deflection support URLs.\n\nAuthenticate with an admin API key.","parameters":[{"$ref":"#/components/parameters/projectId"},{"in":"path","name":"threadId","required":true,"schema":{"description":"Assistant conversation thread ID (ULID).","format":"ulid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantThreadResponse"}}},"description":"The conversation transcript"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Invalid thread ID"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Thread not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Get an assistant conversation thread","tags":["Analytics"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://api.mintlify.com/v1/analytics/string/assistant/threads/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://api.mintlify.com/v1/analytics/string/assistant/threads/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://api.mintlify.com/v1/analytics/string/assistant/threads/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://api.mintlify.com/v1/analytics/string/assistant/threads/string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/assistant/threads/string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/assistant/threads/string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://api.mintlify.com/v1/analytics/string/assistant/threads/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://api.mintlify.com/v1/analytics/string/assistant/threads/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://api.mintlify.com/v1/analytics/string/assistant/threads/string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/analytics/{projectId}/feedback":{"get":{"description":"Returns paginated user feedback with optional filtering\n\nAuthenticate with an admin API key.","parameters":[{"$ref":"#/components/parameters/projectId"},{"in":"query","name":"dateFrom","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format","example":"2024-01-01","type":"string"}},{"in":"query","name":"dateTo","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format. `dateTo` is an exclusive upper limit. Results include dates before, but not on, the specified date.","example":"2024-01-01","type":"string"}},{"in":"query","name":"source","required":false,"schema":{"description":"Filter by feedback source","enum":["code_snippet","contextual","agent","thumbs_only"],"type":"string"}},{"in":"query","name":"status","required":false,"schema":{"description":"Comma-separated list of statuses to filter by","type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"description":"Max results per page","maximum":100,"minimum":1,"type":"number"}},{"in":"query","name":"cursor","required":false,"schema":{"description":"Pagination cursor","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}},"description":"Feedback data with pagination"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Invalid query parameters"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Get user feedback","tags":["Analytics"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://api.mintlify.com/v1/analytics/string/feedback?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&source=agent&status=string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://api.mintlify.com/v1/analytics/string/feedback?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&source=agent&status=string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://api.mintlify.com/v1/analytics/string/feedback?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&source=agent&status=string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://api.mintlify.com/v1/analytics/string/feedback?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&source=agent&status=string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/feedback?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&source=agent&status=string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/feedback?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&source=agent&status=string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://api.mintlify.com/v1/analytics/string/feedback?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&source=agent&status=string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://api.mintlify.com/v1/analytics/string/feedback?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&source=agent&status=string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://api.mintlify.com/v1/analytics/string/feedback?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&source=agent&status=string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/analytics/{projectId}/feedback/by-page":{"get":{"description":"Returns feedback counts aggregated by documentation page path (thumbs up/down for contextual feedback, code snippet count, and total per page)\n\nAuthenticate with an admin API key.","parameters":[{"$ref":"#/components/parameters/projectId"},{"in":"query","name":"dateFrom","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format","example":"2024-01-01","type":"string"}},{"in":"query","name":"dateTo","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format. `dateTo` is an exclusive upper limit. Results include dates before, but not on, the specified date.","example":"2024-01-01","type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"default":10,"description":"Max results per page","maximum":100,"minimum":1,"type":"number"}},{"in":"query","name":"source","required":false,"schema":{"description":"Filter by feedback source","enum":["code_snippet","contextual","agent","thumbs_only"],"type":"string"}},{"in":"query","name":"status","required":false,"schema":{"description":"Comma-separated list of statuses to filter by","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackGroupedByPageResponse"}}},"description":"Per-page feedback aggregates with pagination flag"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Invalid query parameters"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Get feedback by page","tags":["Analytics"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://api.mintlify.com/v1/analytics/string/feedback/by-page?dateFrom=2024-01-01&dateTo=2024-01-01&limit=10&source=agent&status=string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://api.mintlify.com/v1/analytics/string/feedback/by-page?dateFrom=2024-01-01&dateTo=2024-01-01&limit=10&source=agent&status=string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://api.mintlify.com/v1/analytics/string/feedback/by-page?dateFrom=2024-01-01&dateTo=2024-01-01&limit=10&source=agent&status=string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://api.mintlify.com/v1/analytics/string/feedback/by-page?dateFrom=2024-01-01&dateTo=2024-01-01&limit=10&source=agent&status=string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/feedback/by-page?dateFrom=2024-01-01&dateTo=2024-01-01&limit=10&source=agent&status=string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/feedback/by-page?dateFrom=2024-01-01&dateTo=2024-01-01&limit=10&source=agent&status=string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://api.mintlify.com/v1/analytics/string/feedback/by-page?dateFrom=2024-01-01&dateTo=2024-01-01&limit=10&source=agent&status=string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://api.mintlify.com/v1/analytics/string/feedback/by-page?dateFrom=2024-01-01&dateTo=2024-01-01&limit=10&source=agent&status=string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://api.mintlify.com/v1/analytics/string/feedback/by-page?dateFrom=2024-01-01&dateTo=2024-01-01&limit=10&source=agent&status=string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/analytics/{projectId}/searches":{"get":{"description":"Returns paginated documentation search terms for the date range, ordered by hit count descending. Each row includes click-through rate, the most-clicked result path for that query (if any), and the last time the term was searched. `totalSearches` is the total number of search query events in the same date range (sum of all hits, not distinct queries).\n\nAuthenticate with an admin API key.","parameters":[{"$ref":"#/components/parameters/projectId"},{"in":"query","name":"dateFrom","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format","example":"2024-01-01","type":"string"}},{"in":"query","name":"dateTo","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format. `dateTo` is an exclusive upper limit. Results include dates before, but not on, the specified date.","example":"2024-01-01","type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"description":"Max search terms per page (ordered by hit count descending)","maximum":100,"minimum":1,"type":"number"}},{"in":"query","name":"cursor","required":false,"schema":{"description":"Opaque pagination cursor from the previous response","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchesResponse"}}},"description":"Search term aggregates with pagination"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Invalid query parameters or cursor"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Get search queries","tags":["Analytics"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://api.mintlify.com/v1/analytics/string/searches?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://api.mintlify.com/v1/analytics/string/searches?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://api.mintlify.com/v1/analytics/string/searches?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://api.mintlify.com/v1/analytics/string/searches?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/searches?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/searches?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://api.mintlify.com/v1/analytics/string/searches?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://api.mintlify.com/v1/analytics/string/searches?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://api.mintlify.com/v1/analytics/string/searches?cursor=string&dateFrom=2024-01-01&dateTo=2024-01-01&limit=50\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/analytics/{projectId}/views":{"get":{"description":"Returns per-path and site-wide content view event counts, split by human and AI traffic.\n\nAuthenticate with an admin API key.","parameters":[{"$ref":"#/components/parameters/projectId"},{"in":"query","name":"dateFrom","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format","example":"2024-01-01","type":"string"}},{"in":"query","name":"dateTo","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format. `dateTo` is an exclusive upper limit. Results include dates before, but not on, the specified date.","example":"2024-01-01","type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"description":"Max results per page (1-250, default 50). Increment offset by limit while hasMore is true to paginate.","maximum":250,"minimum":1,"type":"integer"}},{"in":"query","name":"offset","required":false,"schema":{"default":0,"description":"Number of rows to skip. Use offset = (page - 1) * limit for page-based access.","minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewsByPageResponse"}}},"description":"Site-wide and per-path content view event counts"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Invalid query parameters"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Get page views","tags":["Analytics"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://api.mintlify.com/v1/analytics/string/views?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://api.mintlify.com/v1/analytics/string/views?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://api.mintlify.com/v1/analytics/string/views?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://api.mintlify.com/v1/analytics/string/views?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/views?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/views?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://api.mintlify.com/v1/analytics/string/views?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://api.mintlify.com/v1/analytics/string/views?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://api.mintlify.com/v1/analytics/string/views?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/analytics/{projectId}/visitors":{"get":{"description":"Returns per-path and site-wide approximate distinct visitors by traffic type. The `total` field is deduplicated across human and AI (union of distinct visitor IDs with any qualifying content view).\n\nAuthenticate with an admin API key.","parameters":[{"$ref":"#/components/parameters/projectId"},{"in":"query","name":"dateFrom","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format","example":"2024-01-01","type":"string"}},{"in":"query","name":"dateTo","required":false,"schema":{"description":"Date in ISO 8601 or YYYY-MM-DD format. `dateTo` is an exclusive upper limit. Results include dates before, but not on, the specified date.","example":"2024-01-01","type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"description":"Max results per page (1-250, default 50). Increment offset by limit while hasMore is true to paginate.","maximum":250,"minimum":1,"type":"integer"}},{"in":"query","name":"offset","required":false,"schema":{"default":0,"description":"Number of rows to skip. Use offset = (page - 1) * limit for page-based access.","minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorsByPageResponse"}}},"description":"Site-wide totals and per-path visitor counts"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Invalid query parameters"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsErrorResponse"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Get unique visitors","tags":["Analytics"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://api.mintlify.com/v1/analytics/string/visitors?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://api.mintlify.com/v1/analytics/string/visitors?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://api.mintlify.com/v1/analytics/string/visitors?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://api.mintlify.com/v1/analytics/string/visitors?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/visitors?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://api.mintlify.com/v1/analytics/string/visitors?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://api.mintlify.com/v1/analytics/string/visitors?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://api.mintlify.com/v1/analytics/string/visitors?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://api.mintlify.com/v1/analytics/string/visitors?dateFrom=2024-01-01&dateTo=2024-01-01&limit=50&offset=0\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}}},"servers":[{"description":"Production","url":"https://api.mintlify.com"}]}