Skip to main content
POST
Semantic Search
Retrieve sources that are most relevant to a given question. This endpoint fetches from all data source types.

Path Parameters

string
required
The slug of the Guru to query sources from

Headers

string
required
Your API key for authentication. You can obtain your API key from the Gurubase dashboard.

Body Parameters

string
required
The question to find related sources for
array
Array of labels to filter sources by. If provided, only sources with matching labels will be returned. If multiple labels are provided, they are OR’ed. Meaning data sources belonging to any of those labels are returned.
string
External user identifier. This allows you to track search queries per user in your analytics. It should be UUID.

Response

The response contains an array of source objects and total count.
object[]
Array of source objects relevant to the question (maximum 10)Each source object contains:
  • title (string): The title of the source document or page
  • link (string): The URL link to the source (can be null for internal sources)
  • display_link (boolean): Whether to display the link in the UI
  • icon_url (string): URL of the icon representing the source
  • labels (array): Array of labels associated with this source
number
Total number of sources returned