For the complete documentation index, see llms.txt. This page is also available as Markdown.

List the documentation sources used to answer a question

Returns the documentation pages the Ask AI assistant used to answer a given question. Use it to see which content grounded the AI's responses to that question.

Available in MCP
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
siteIdstringRequired

The unique id of the site

siteQuestionIdstringRequired

The unique id of the site question

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

fromstring · date-timeOptional

Filter sources to answers created at or after this timestamp.

tostring · date-timeOptional

Filter sources to answers created at or before this timestamp.

Responses
200

OK

application/json
countnumberOptional

Total count of objects in the list

get/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources
GET /v1/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "next": {
    "page": "text"
  },
  "count": 1,
  "items": [
    {
      "object": "site-question-answer-source",
      "id": "text",
      "weight": 1,
      "title": "text",
      "urls": {
        "location": "https://example.com"
      },
      "type": "page",
      "space": "text",
      "revision": "text",
      "page": "text"
    }
  ]
}

Last updated

Was this helpful?

Powered by GitBook