Skip to main content
POST
Raw Search
Required permission: Search — Read (read:search), which basic includes, so any signed-in user has it. A limited Personal Access Token needs the Search — Read scope.
This endpoint returns Onyx’s retrieval results with no LLM calls, for callers that rank or read the results themselves. It runs the query as written and returns up to 10 sections in retrieval order. For query expansion and LLM document selection, use Search instead.
Results are always filtered by the calling user’s document permissions, so the same query run by two users can return different documents. A search needs a vector database: deployments running with DISABLE_VECTOR_DB set (Onyx Lite) answer with 501.

Authorizations

Authorization
string
header
required

Authorization header with Bearer token

Body

application/json
query
string
required
Required string length: 1 - 2048
sources
enum<string>[] | null
Available options:
ingestion_api,
slack,
web,
google_drive,
gmail,
github,
gitbook,
gitlab,
guru,
bookstack,
outline,
confluence,
jira,
slab,
productboard,
file,
coda,
canvas,
notion,
zulip,
linear,
hubspot,
document360,
gong,
google_sites,
zendesk,
loopio,
box,
dropbox,
sharepoint,
onedrive,
teams,
outlook,
salesforce,
discourse,
axero,
clickup,
mediawiki,
wikipedia,
asana,
s3,
r2,
google_cloud_storage,
oci_storage,
xenforo,
not_applicable,
discord,
freshdesk,
fireflies,
zoom,
egnyte,
airtable,
highspot,
drupal_wiki,
imap,
bitbucket,
testrail,
braintrust,
lumapps,
youtrack,
azure_datalake,
mock_connector,
user_file,
craft_file
document_sets
string[] | null
tags
Tag · object[] | null
time_cutoff
string<date-time> | null
persona_id
integer | null
context_chunks
integer
default:5
Required range: 0 <= x <= 5

Response

Successful Response

results
SearchResult · object[]
required