Search knowledge
curl --request GET \
--url https://api.seynlabs.com/v1/knowledge/query \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"results": [
{
"ruleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"processId": "<string>",
"processName": "<string>",
"step": "<string>",
"confidence": 123,
"score": 123
}
],
"explain": {
"strategy": "<string>",
"sqlHitCount": 123,
"bm25HitCount": 123,
"vectorHitCount": 123,
"graphTraversalDepth": 123,
"rerankerUsed": "<string>",
"latencyMs": 123
}
},
"meta": {
"requestId": "<string>",
"total": 123,
"strategy": "<string>"
}
}Knowledge
Search knowledge
Run a natural-language query over your extracted knowledge.
GET
/
v1
/
knowledge
/
query
Search knowledge
curl --request GET \
--url https://api.seynlabs.com/v1/knowledge/query \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"results": [
{
"ruleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"processId": "<string>",
"processName": "<string>",
"step": "<string>",
"confidence": 123,
"score": 123
}
],
"explain": {
"strategy": "<string>",
"sqlHitCount": 123,
"bm25HitCount": 123,
"vectorHitCount": 123,
"graphTraversalDepth": 123,
"rerankerUsed": "<string>",
"latencyMs": 123
}
},
"meta": {
"requestId": "<string>",
"total": 123,
"strategy": "<string>"
}
}Runs your question through the full hybrid query pipeline: structured, full-text, and semantic signals fused, reranked, and graph-expanded over the active knowledge library. Returns ranked rule hits.
Leave
strategy at its default (auto) unless you have a reason to force one. Pass include=explain to get per-result signal attribution, the same data the dashboard’s Query Explorer shows.Authorizations
Bearer token from app.seynlabs.com → Settings → API Keys.
Send as Authorization: Bearer sk_live_....
Query Parameters
The natural-language query.
Minimum string length:
1Retrieval strategy. Defaults to auto (the analyzer picks).
Available options:
auto, structured, hybrid, graph Maximum number of hits to return (1–50). Defaults to 10.
Required range:
1 <= x <= 50Restrict search to a specific knowledge library.
Comma-separated list of optional fields to include. Currently only explain is supported.
⌘I