Search knowledge
curl --request GET \
--url https://api.seynlabs.com/v1/knowledge/query \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.seynlabs.com/v1/knowledge/query"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.seynlabs.com/v1/knowledge/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.seynlabs.com/v1/knowledge/query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.seynlabs.com/v1/knowledge/query"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.seynlabs.com/v1/knowledge/query")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.seynlabs.com/v1/knowledge/query")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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>'import requests
url = "https://api.seynlabs.com/v1/knowledge/query"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.seynlabs.com/v1/knowledge/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.seynlabs.com/v1/knowledge/query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.seynlabs.com/v1/knowledge/query"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.seynlabs.com/v1/knowledge/query")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.seynlabs.com/v1/knowledge/query")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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