Skip to main content
Use this endpoint to export user feedback collected from your documentation. Feedback includes contextual feedback from page ratings and code snippet feedback. Paginate through results using the cursor parameter returned in the response. Continue fetching while hasMore is true.

Filtering

Filter feedback by:
  • Date range: Use dateFrom and dateTo to limit results to a specific time period
  • Source: Filter by code_snippet or contextual feedback types
  • Status: Filter by status values like pending, in_progress, resolved, or dismissed

Response types

The response contains different feedback types based on the source:
  • Contextual feedback: Includes helpful boolean and optional contact email
  • Code snippet feedback: Includes code, filename, and lang fields
curl -X GET "https://api.mintlify.com/v1/analytics/{projectId}/feedback?dateFrom=2024-01-01&dateTo=2024-01-31&limit=50" \
  -H "Authorization: Bearer YOUR_API_KEY"

Endpoint

projectId
string
required
Your project ID. Can be copied from the API keys page in your dashboard.

Query Parameters

dateFrom
string
Date in ISO 8601 or YYYY-MM-DD format. Filter feedback created on or after this date.
dateTo
string
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.
source
string
Filter by feedback source. One of: code_snippet, contextual.
status
string
Comma-separated list of statuses to filter by. Values: pending, in_progress, resolved, dismissed.
limit
number
default:"50"
Max results per page. Minimum: 1, Maximum: 100.
cursor
string
Pagination cursor returned from a previous response.

Response

feedback
array
List of feedback entries. Each entry contains different fields based on the feedback source.
nextCursor
string
Cursor to retrieve the next page of results. Null if no more results.
hasMore
boolean
Whether additional results are available beyond this page.
{
  "feedback": [
    {
      "id": "fb_123abc",
      "path": "/getting-started",
      "comment": "This page was very helpful!",
      "createdAt": "2024-01-15T10:30:00.000Z",
      "source": "contextual",
      "status": "pending",
      "helpful": true,
      "contact": "[email protected]"
    },
    {
      "id": "fb_456def",
      "path": "/api-reference/authentication",
      "comment": "This code example has a typo",
      "createdAt": "2024-01-14T14:20:00.000Z",
      "source": "code_snippet",
      "status": "in_progress",
      "code": "const apiKey = 'YOUR_API_KEY';\nfetch('/api/data', {\n  headers: { Authorization: `Bearer ${apiKey}` }\n});",
      "filename": "example.js",
      "lang": "javascript"
    }
  ],
  "nextCursor": "cursor_789ghi",
  "hasMore": true
}

Authentication

This endpoint requires an admin API key (prefixed with mint_). Generate one on the API keys page in your dashboard.

Build docs developers (and LLMs) love