Conversation
Generated-By: mintlify-agent
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| "totalSearches", | ||
| "nextCursor" | ||
| ] | ||
| }, |
There was a problem hiding this comment.
SearchesResponse missing hasMore field unlike sibling schemas
Medium Severity
The new SearchesResponse schema omits the hasMore boolean field, while both FeedbackResponse and AssistantConversationsResponse in this same API include hasMore as a required property alongside nextCursor. API consumers building generic pagination logic across the analytics endpoints (all sharing the same auth, parameter patterns, and pagination style) would expect a consistent response contract. The missing field breaks that consistency and could cause client-side pagination code to fail when switching to or integrating the searches endpoint.
|
Closing as duplicate of #4926, which covers the same search queries analytics endpoint with more complete field descriptions. |


Summary
GET /v1/analytics/{projectId}/searchesendpoint to the analytics OpenAPI spec and documentationNote
Low Risk
Low risk: this PR only adds OpenAPI schema/docs and navigation for a new analytics export endpoint, with no runtime/business-logic changes shown.
Overview
Adds a new Analytics Export API endpoint,
GET /v1/analytics/{projectId}/searches, to return paginated aggregates of documentation search terms (hits, CTR, top clicked page, last searched timestamp) plustotalSearchesandnextCursor.Introduces the
SearchesResponseschema inanalytics.openapi.json, adds a newapi/analytics/searches.mdxreference page, and wires it into the API reference navigation indocs.jsonunder Analytics.Written by Cursor Bugbot for commit 6051ee2. This will update automatically on new commits. Configure here.