Search Brain documents
curl --request POST \
--url https://app.hookie.ai/admin/api/data-workspace/search \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"top_k": 5
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', top_k: 5})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/search"
payload = {
"query": "<string>",
"top_k": 5
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Data workspace
Search Brain documents
Semantic search over the workspace’s Brain documents. A read (viewers may run it) that takes its query as a POST body. The query is embedded and matched in the workspace’s own vector namespace; each hit is re-checked against current state, so only ready, included documents return passage text. Each search counts one vector query and one embedding (512 tokens) against the workspace and member allowances; 429 when either is exhausted. Requires Ultimate or the Brain add-on.
POST
/
admin
/
api
/
data-workspace
/
search
Search Brain documents
curl --request POST \
--url https://app.hookie.ai/admin/api/data-workspace/search \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"top_k": 5
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', top_k: 5})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/search"
payload = {
"query": "<string>",
"top_k": 5
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}