Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.82 KB

search.md

File metadata and controls

51 lines (31 loc) · 1.82 KB
description
Search in GitBook is the entity for searches made across organizations, spaces, and pages.

Search

GET search results from all spaces for the current user

{% swagger src="https://api.gitbook.com/openapi.json" path="/search" method="get" expanded="true" %} https://api.gitbook.com/openapi.json {% endswagger %}

GET search results from a specific organization

{% swagger src="https://api.gitbook.com/openapi.json" path="/orgs/{organizationId}/search" method="get" expanded="true" %} https://api.gitbook.com/openapi.json {% endswagger %}

GET search results from a specific space

{% swagger src="https://api.gitbook.com/openapi.json" path="/spaces/{spaceId}/search" method="get" %} https://api.gitbook.com/openapi.json {% endswagger %}

GitBook Lens API

POST AI Ask question on all content accessible by the authenticated user

{% swagger src="https://api.gitbook.com/openapi.json" path="/search/ask" method="post" expanded="true" %} https://api.gitbook.com/openapi.json {% endswagger %}

POST AI Ask question in a specific space

{% swagger src="https://api.gitbook.com/openapi.json" path="/spaces/{spaceId}/search/ask" method="post" expanded="true" %} https://api.gitbook.com/openapi.json {% endswagger %}

POST AI Get recommended questions in a space

{% swagger src="https://api.gitbook.com/openapi.json" path="/search/questions" method="post" expanded="true" %} https://api.gitbook.com/openapi.json {% endswagger %}