AnalyticsRatings on AI answers

Ratings on AI answers

Thumbs up and down left on individual AI answers, newest first. The summary block covers the whole date range, not just the returned page of results.

curl -X GET "https://api.documentationai.app/api/v1/analytics/ai/answer-feedback?startDate=2026-05-01&endDate=2026-05-31&limit=20&offset=0" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "startDate": "example_string",
  "endDate": "example_string",
  "entries": [
    {
      "questionId": "example_string",
      "question": "example_string",
      "answerSnippet": "example_string",
      "type": "like",
      "pagePath": "example_string",
      "sessionId": "example_string",
      "submittedAt": "2024-12-25T10:00:00Z"
    }
  ],
  "summary": {
    "totalFeedback": 42,
    "likes": 42,
    "dislikes": 42,
    "satisfactionRate": 3.14
  },
  "total": 42
}
GET
/analytics/ai/answer-feedback
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...
query
startDatestring

First UTC day to include, as YYYY-MM-DD. Defaults to six days before endDate. The range must not exceed 90 days.

Pattern: ^\d{4}-\d{2}-\d{2}$
query
endDatestring

Last UTC day to include, as YYYY-MM-DD. Inclusive — the whole day is counted. Defaults to today.

Pattern: ^\d{4}-\d{2}-\d{2}$
query
limitinteger

Maximum number of rows to return

Min: 1 • Max: 100
query
offsetinteger

Number of rows to skip. Combined with total, this is how you page through results.

Min: 0
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

Query Parameters

startDatestring

First UTC day to include, as YYYY-MM-DD. Defaults to six days before endDate. The range must not exceed 90 days.

Example:
2026-05-01
endDatestring

Last UTC day to include, as YYYY-MM-DD. Inclusive — the whole day is counted. Defaults to today.

Example:
2026-05-31
limitinteger

Maximum number of rows to return

offsetinteger

Number of rows to skip. Combined with total, this is how you page through results.

Responses

startDatestring
endDatestring
entriesarray
summaryobject

Totals for the whole date range

totalinteger