> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-questions/list-the-answers-a-sites-ask-ai-assistant-generated.md).

# List the answers a site's Ask AI assistant generated

Returns a paginated list of individual Ask AI answers generated for a site. Each is the assistant's response to a specific asked question, with the raw question text, channel, and feedback. Use it to review answer quality and what users asked across the site.

```json
{"openapi":"3.1.0","info":{"title":"GitBook API","version":"0.0.1-beta"},"tags":[{"name":"site-questions","description":"Inspect the canonical questions asked on your site, the generated answers linked to each question, and the sources used for each answer.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"SiteQuestion,SiteQuestionAnswer,SiteQuestionAnswerWithResponse,SiteQuestionAnswerSource\" grouped=\"false\" %}\n    The Site Questions objects\n{% endopenapi-schemas %}\n"}],"servers":[{"url":"{host}/v1","variables":{"host":{"default":"https://api.gitbook.com"}}}],"security":[{"user":[]},{"oauth":["site:insights:read"]}],"components":{"securitySchemes":{"user":{"type":"http","scheme":"bearer"},"oauth":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://oauth.gitbook.com/authorize","tokenUrl":"https://oauth.gitbook.com/token","scopes":{"user:read":"Read your GitBook user profile.","organization:read":"Read organization settings and metadata.","organization:write":"Create and update organization settings.","organization:members:read":"Read organization members, invites and link invites.","organization:members:write":"Manage organization members, invites and link invites.","organization:ask":"Ask AI questions across an organization's content.","organization:search":"Search across an organization's content.","space:read":"Read spaces and their content.","space:write":"Create, update and delete spaces and their content, including imports.","space:permissions:read":"Read space permissions.","space:permissions:write":"Manage space permissions.","change-request:merge":"Merge change requests, publishing their changes to the space.","site:read":"Read sites and their settings.","site:write":"Create, update and delete sites, sections and their settings.","site:publish":"Publish and unpublish sites, controlling their public exposure.","site:permissions:read":"Read site permissions.","site:permissions:write":"Manage site permissions.","site:auth:read":"Read site authentication and security configuration.","site:auth:write":"Manage site authentication and security configuration.","site:insights:read":"Read site analytics and insights.","site:ask":"Ask AI questions across a site's content.","site:search":"Search across a site's content.","openapi:read":"Read OpenAPI specifications.","openapi:write":"Create, update and delete OpenAPI specifications."}}}}},"parameters":{"organizationId":{"name":"organizationId","in":"path","required":true,"description":"The unique id of the organization","schema":{"$ref":"#/components/schemas/EntityId"}},"siteId":{"name":"siteId","in":"path","required":true,"description":"The unique id of the site","schema":{"type":"string"}},"listPage":{"name":"page","in":"query","description":"Identifier of the page results to fetch.","schema":{"type":"string"}},"listLimit":{"name":"limit","in":"query","description":"The number of results per page","schema":{"type":"number","minimum":0,"maximum":1000}}},"schemas":{"EntityId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","description":"A unique entity identifier"},"Timestamp":{"type":"string","format":"date-time"},"SiteQuestionAnswerResolution":{"type":"string","description":"Whether the response answered the question.","enum":["no","partially","yes"]},"SiteQuestionAnswerHelpfulness":{"type":"string","description":"Helpfulness of the response for the end user need.","enum":["low","medium","high"]},"SiteQuestionAnswerRelevance":{"type":"string","description":"Relevance classification of the user question.","enum":["relevant","spam","off-topic","unclear"]},"SiteChannelType":{"oneOf":[{"$ref":"#/components/schemas/SiteCoreChannelType"},{"$ref":"#/components/schemas/SiteConfigurableChannelType"}]},"SiteCoreChannelType":{"type":"string","enum":["site","embed","api"]},"SiteConfigurableChannelType":{"type":"string","enum":["builtin:slack","builtin:discord","builtin:github","builtin:linear"]},"SiteQuestionType":{"type":"string","description":"Type classification of the user question.","enum":["exploring","how-to","troubleshooting","reference","unknown"]},"List":{"type":"object","properties":{"next":{"type":"object","properties":{"page":{"type":"string","description":"Unique identifier to query the next results page"}},"required":["page"]},"count":{"type":"number","description":"Total count of objects in the list"}}},"SiteQuestionAnswer":{"type":"object","properties":{"object":{"type":"string","enum":["site-question-answer"]},"id":{"type":"string","description":"The ID of the site question answer."},"question":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the parent site question."},"type":{"$ref":"#/components/schemas/SiteQuestionType"}},"required":["id","type"]},"topics":{"type":"array","description":"The IDs of the associated site topics.","items":{"type":"string"}},"input":{"type":"object","required":["text","raw"],"properties":{"text":{"type":"string","description":"Normalized question text for this answer."},"raw":{"type":"string","description":"Raw question text as asked by the user."}}},"thread":{"type":"object","required":["id","previous"],"properties":{"id":{"type":"string","description":"The ID of the thread this answer belongs to."},"previous":{"type":"string","description":"ID of the previous answer in the same thread."}}},"session":{"$ref":"#/components/schemas/SiteInsightsSession"},"feedback":{"type":"object","required":["rating"],"properties":{"rating":{"type":"integer","enum":[-1,1],"description":"Feedback rating provided by the user."}}},"responseId":{"type":"string","description":"The response identifier for this answer."},"language":{"type":"string","description":"ISO language code of the question."},"answered":{"$ref":"#/components/schemas/SiteQuestionAnswerResolution"},"helpfulness":{"$ref":"#/components/schemas/SiteQuestionAnswerHelpfulness"},"relevance":{"$ref":"#/components/schemas/SiteQuestionAnswerRelevance"},"channel":{"oneOf":[{"type":"object","properties":{"type":{"$ref":"#/components/schemas/SiteCoreChannelType"}},"required":["type"]},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/SiteConfigurableChannelType"},"id":{"type":["string","null"],"description":"ID of the associated site channel when the answer originates from a configurable channel. Null if the channel has been deleted."}},"required":["type","id"]}]},"createdAt":{"$ref":"#/components/schemas/Timestamp"},"updatedAt":{"$ref":"#/components/schemas/Timestamp"},"urls":{"type":"object","description":"URLs associated with the site question answer.","properties":{"location":{"type":"string","format":"uri","description":"URL of the site question answer in the API."}},"required":["location"]}},"required":["object","id","question","topics","input","responseId","language","answered","helpfulness","relevance","channel","createdAt","urls"]},"SiteInsightsSession":{"type":"object","description":"Identifiers for a GitBook site session, used for analytics and adaptive content.","properties":{"visitorId":{"type":"string","description":"GitBook's unique identifier of the visitor."},"sessionId":{"type":"string","description":"GitBook's unique identifier of the visitor's session."}},"required":["visitorId","sessionId"]}}},"paths":{"/orgs/{organizationId}/sites/{siteId}/answers":{"get":{"operationId":"listSiteQuestionAnswers","summary":"List the answers a site's Ask AI assistant generated","description":"Returns a paginated list of individual Ask AI answers generated for a site. Each is the assistant's response to a specific asked question, with the raw question text, channel, and feedback. Use it to review answer quality and what users asked across the site.","tags":["site-questions"],"parameters":[{"$ref":"#/components/parameters/organizationId"},{"$ref":"#/components/parameters/siteId"},{"name":"question","in":"query","description":"Filter answers to a specific site question ID.","schema":{"type":"string"}},{"name":"from","in":"query","description":"Filter answers created at or after this timestamp.","schema":{"$ref":"#/components/schemas/Timestamp"}},{"name":"to","in":"query","description":"Filter answers created at or before this timestamp.","schema":{"$ref":"#/components/schemas/Timestamp"}},{"name":"language","in":"query","description":"Filter answers by ISO language code.","schema":{"type":"string"}},{"name":"answered","in":"query","description":"Filter answers by answered resolution.","schema":{"type":"array","items":{"$ref":"#/components/schemas/SiteQuestionAnswerResolution"}}},{"name":"helpfulness","in":"query","description":"Filter answers by answered helpfulness.","schema":{"$ref":"#/components/schemas/SiteQuestionAnswerHelpfulness"}},{"name":"relevance","in":"query","description":"Filter answers by question relevance.","schema":{"type":"array","items":{"$ref":"#/components/schemas/SiteQuestionAnswerRelevance"}}},{"name":"channelType","in":"query","description":"Filter answers by answer channel type.","schema":{"type":"array","items":{"$ref":"#/components/schemas/SiteChannelType"}}},{"name":"question.type","in":"query","description":"Filter answers by question type.","schema":{"$ref":"#/components/schemas/SiteQuestionType"}},{"name":"topic","in":"query","description":"Filter answers by associated site topic ID.","schema":{"type":"string"}},{"name":"thread","in":"query","description":"Filter answers by thread root answer ID. Includes the root answer itself.","schema":{"type":"string"}},{"$ref":"#/components/parameters/listPage"},{"$ref":"#/components/parameters/listLimit"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SiteQuestionAnswer"}}}}]}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/developers/gitbook-api/api-reference/docs-sites/site-questions/list-the-answers-a-sites-ask-ai-assistant-generated.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
