Ask a question in an organization (streamed)
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$Query parameters
querystringRequired
formatstring · enumOptionalPossible values:
Output format for the content.
detailsbooleanOptional
Return query details in the result
Responses
200
OK
text/event-stream
typestring · enumRequiredPossible values:
get/orgs/{organizationId}/ask/stream
GET /v1/orgs/{organizationId}/ask/stream?query=text HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
{
"type": "answer",
"answer": {
"answer": {
"markdown": "# Hello World\n\nThis is a markdown document linking to [another page](/pages/page_id).\n"
},
"followupQuestions": [
"text"
],
"sources": [
{
"type": "page",
"reason": "text",
"page": "text",
"revision": "text",
"space": "text",
"sections": [
"text"
]
}
]
}
}Last updated
Was this helpful?