Skip to main content
Mintlify
current

Search documentation

Type to search this documentation.

Get feedback by page

GET/v1/analytics/{projectId}/feedback/by-pageGet feedback by page

Returns feedback counts aggregated by documentation page path (thumbs up/down for contextual feedback, code snippet count, and total per page)

Authenticate with an admin API key.

Parameters

projectIdstringpathrequired

Your project ID. Can be copied from the [API keys](https://app.mintlify.com/settings/organization/api-keys) page in your dashboard.

dateFromstringquery

Date in ISO 8601 or YYYY-MM-DD format

dateTostringquery

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.

limitnumberquery

Max results per page

default 10 · maximum 100 · minimum 1

sourcestringquery

one of "code_snippet", "contextual", "agent", "thumbs_only"

Filter by feedback source

one of "code_snippet", "contextual", "agent", "thumbs_only"

statusstringquery

Comma-separated list of statuses to filter by

Responses

200Per-page feedback aggregates with pagination flagapplication/json
objectFeedbackGroupedByPageResponse
feedbackarray of objectrequired

Feedback counts aggregated by documentation page path.

Show child attributes
Show array items
codenumberrequired

Number of code snippet feedback entries.

pathstringrequired

The documentation page path.

thumbsDownnumberrequired

Number of negative (thumbs down) contextual feedback entries.

thumbsUpnumberrequired

Number of positive (thumbs up) contextual feedback entries.

totalnumberrequired

Total feedback entries for this page.

hasMorebooleanrequired

Whether additional results are available beyond this page.

Example response
{
  "feedback": [
    {
      "code": 0,
      "path": "string",
      "thumbsDown": 0,
      "thumbsUp": 0,
      "total": 0
    }
  ],
  "hasMore": true
}
400Invalid query parametersapplication/json
objectAnalyticsErrorResponse
detailsarray of object

Additional details about the error.

Show child attributes
Show array items
messagestringrequired

Description of a specific validation or processing error.

errorstringrequired

Error message describing what went wrong.

Example response
{
  "details": [
    {
      "message": "string"
    }
  ],
  "error": "string"
}
500Server errorapplication/json
objectAnalyticsErrorResponse
detailsarray of object

Additional details about the error.

Show child attributes
Show array items
messagestringrequired

Description of a specific validation or processing error.

errorstringrequired

Error message describing what went wrong.

Example response
{
  "details": [
    {
      "message": "string"
    }
  ],
  "error": "string"
}
Documentation menu