Skip to main content
Mintlify
current

Search documentation

Type to search this documentation.

Get user feedback

GET/v1/analytics/{projectId}/feedbackGet user feedback

Returns paginated user feedback with optional filtering

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.

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

limitnumberquery

Max results per page

default 50 · maximum 100 · minimum 1

cursorstringquery

Pagination cursor

Responses

200Feedback data with paginationapplication/json
objectFeedbackResponse
feedbackarray of valuerequired

List of feedback entries.

Show child attributes
Show array items
anyOf · 3 options
Option 1object

Returned when source is `contextual`. Includes whether the user found the page helpful and an optional contact email.

commentnull | stringrequired

Text of the user's feedback comment.

contactnull | stringrequired

Email address the user provided for follow-up.

createdAtnull | stringrequired

Timestamp when the feedback was submitted.

helpfulbooleanrequired

Whether the user found the content helpful.

idstringrequired

Unique feedback identifier.

pathstringrequired

The path or URL to the source document.

sourcestringrequired

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.

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

statusstringrequired

Current review status of the feedback.

one of "pending", "in_progress", "resolved", "dismissed"

Option 2object

Returned when source is `code_snippet`. Includes the code, filename, and language of the snippet the feedback relates to.

codestringrequired

The code snippet the feedback relates to.

commentnull | stringrequired

Text of the user's feedback comment.

createdAtnull | stringrequired

Timestamp when the feedback was submitted.

filenamenull | stringrequired

Filename associated with the code snippet.

idstringrequired

Unique feedback identifier.

langnull | stringrequired

Programming language of the code snippet.

pathstringrequired

The path or URL to the source document.

sourcestringrequired

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.

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

statusstringrequired

Current review status of the feedback.

one of "pending", "in_progress", "resolved", "dismissed"

Option 3object

Returned when source is `agent` or `thumbs_only`. Contains base feedback fields only.

commentnull | stringrequired

Text of the user's feedback comment.

createdAtnull | stringrequired

Timestamp when the feedback was submitted.

idstringrequired

Unique feedback identifier.

pathstringrequired

The path or URL to the source document.

sourcestringrequired

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.

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

statusstringrequired

Current review status of the feedback.

one of "pending", "in_progress", "resolved", "dismissed"

hasMorebooleanrequired

Whether additional results are available beyond this page.

nextCursornull | stringrequired

Cursor to retrieve the next page of results. Null if no more results.

Example response
{
  "feedback": [
    {
      "comment": "string",
      "createdAt": "string",
      "id": "string",
      "path": "string",
      "source": "agent",
      "status": "dismissed"
    }
  ],
  "hasMore": true,
  "nextCursor": "string"
}
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