Search Wiki
curl --request POST \
--url https://omnicommerce.ai/api/v1/wiki/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>'})
};
fetch('https://omnicommerce.ai/api/v1/wiki/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/wiki/search"
payload = { "query": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"warnings": [
"<string>"
],
"recommendations": [
"<string>"
],
"links": {},
"data": {
"query": "<string>",
"count": 123,
"hits": [
{
"pageId": "<string>",
"title": "<string>",
"summary": "<string>",
"chunkId": "<string>",
"chunkIndex": 123,
"revisionNumber": 123,
"snippet": "<string>",
"score": 123,
"matchedBy": [
"label"
],
"stale": true,
"lastConfirmedAt": "<string>"
}
],
"retrieval": {
"graph": true,
"meaning": true,
"degraded": true
}
},
"jobId": "<string>"
}Wiki
Search Wiki
Search the wiki and return the best-matching fragments, the same search agents use. Requires documents:read.
Results fuse name matches, full text, meaning, graph relationships and page links. retrieval reports which signals were available; degraded is true when the graph or meaning search could not be used.
POST
/
api
/
v1
/
wiki
/
search
Search Wiki
curl --request POST \
--url https://omnicommerce.ai/api/v1/wiki/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>'})
};
fetch('https://omnicommerce.ai/api/v1/wiki/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/wiki/search"
payload = { "query": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"warnings": [
"<string>"
],
"recommendations": [
"<string>"
],
"links": {},
"data": {
"query": "<string>",
"count": 123,
"hits": [
{
"pageId": "<string>",
"title": "<string>",
"summary": "<string>",
"chunkId": "<string>",
"chunkIndex": 123,
"revisionNumber": 123,
"snippet": "<string>",
"score": 123,
"matchedBy": [
"label"
],
"stale": true,
"lastConfirmedAt": "<string>"
}
],
"retrieval": {
"graph": true,
"meaning": true,
"degraded": true
}
},
"jobId": "<string>"
}Authorizations
Body
application/json
Response
Matching fragments.