Retrieve user feedback from your documentation, including page ratings and code snippet feedback.
curl --request GET \
--url https://api.mintlify.com/v1/analytics/{projectId}/feedback \
--header 'Authorization: Bearer <token>'{
"feedback": [
{
"id": "<string>",
"path": "<string>",
"comment": "<string>",
"createdAt": "<string>",
"source": "code_snippet",
"status": "pending",
"helpful": true,
"contact": "<string>"
}
],
"nextCursor": "<string>",
"hasMore": true
}cursor parameter returned in the response. Continue fetching while hasMore is true.
dateFrom and dateTo to limit results to a specific time periodcode_snippet, contextual, or agent feedback typespending, in_progress, resolved, or dismissedhelpful boolean and optional contact emailcode, filename, and lang fieldscomment with the agent’s feedback text and the path of the page it relates toThe Authorization header expects a Bearer token. Use an admin API key (prefixed with mint_). This is a server-side secret key. Generate one on the API keys page in your dashboard.
Date in ISO 8601 or YYYY-MM-DD format
"2024-01-01"
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.
"2024-01-01"
Filter by feedback source
code_snippet, contextual, agent, thumbs_only Comma-separated list of statuses to filter by
Max results per page
1 <= x <= 100Pagination cursor
Feedback data with pagination
List of feedback entries.
Returned when source is contextual. Includes whether the user found the page helpful and an optional contact email.
Show child attributes
Cursor to retrieve the next page of results. Null if no more results.
Whether additional results are available beyond this page.
Was this page helpful?
curl --request GET \
--url https://api.mintlify.com/v1/analytics/{projectId}/feedback \
--header 'Authorization: Bearer <token>'{
"feedback": [
{
"id": "<string>",
"path": "<string>",
"comment": "<string>",
"createdAt": "<string>",
"source": "code_snippet",
"status": "pending",
"helpful": true,
"contact": "<string>"
}
],
"nextCursor": "<string>",
"hasMore": true
}