AnalyticsAI assistant questions

AI assistant questions

Questions asked of the AI assistant, newest first.

Set maxConfidence to surface the answers the assistant was least sure of. These are the clearest signal of gaps in your documentation. Questions with no confidence score are left out when you use that filter, since there is nothing to compare against the threshold.

curl -X GET "https://api.documentationai.app/api/v1/analytics/ai/questions?startDate=2026-05-01&endDate=2026-05-31&limit=20&offset=0&sessionId=example_string&maxConfidence=0.5" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "startDate": "example_string",
  "endDate": "example_string",
  "questions": [
    {
      "question": "how to migrate content?",
      "answer": "example_string",
      "pagePath": "example_string",
      "sessionId": "example_string",
      "confidenceScore": 0.98,
      "askedAt": "2024-12-25T10:00:00Z"
    }
  ],
  "total": 42
}
GET
/analytics/ai/questions
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 questions to return. Capped lower than other endpoints because full answer text is included.

Min: 1 • Max: 50
query
offsetinteger

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

Min: 0
query
sessionIdstring

Return only questions from one session, to reconstruct a conversation. Cannot be combined with maxConfidence.

Min length: 1
query
maxConfidencenumber

Return only questions the assistant scored strictly below this value. Cannot be combined with sessionId.

Min: 0 • Max: 1
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 questions to return. Capped lower than other endpoints because full answer text is included.

offsetinteger

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

sessionIdstring

Return only questions from one session, to reconstruct a conversation. Cannot be combined with maxConfidence.

maxConfidencenumber

Return only questions the assistant scored strictly below this value. Cannot be combined with sessionId.

Example:
0.5

Responses

startDatestring
endDatestring
questionsarray
totalinteger