curl --request POST \
--url https://api.adapter.com/v1/knowledge/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "pricing discussions with enterprise customers",
"limit": 10,
"mode": "hybrid",
"sources": [
"<string>"
],
"metadata": {
"env": "staging",
"team": "growth"
},
"date_from": "2026-01-15",
"date_to": "2026-01-31",
"group_by": "document",
"include_evidence": false
}
'import requests
url = "https://api.adapter.com/v1/knowledge/search"
payload = {
"q": "pricing discussions with enterprise customers",
"limit": 10,
"mode": "hybrid",
"sources": ["<string>"],
"metadata": {
"env": "staging",
"team": "growth"
},
"date_from": "2026-01-15",
"date_to": "2026-01-31",
"group_by": "document",
"include_evidence": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
q: 'pricing discussions with enterprise customers',
limit: 10,
mode: 'hybrid',
sources: ['<string>'],
metadata: {env: 'staging', team: 'growth'},
date_from: '2026-01-15',
date_to: '2026-01-31',
group_by: 'document',
include_evidence: false
})
};
fetch('https://api.adapter.com/v1/knowledge/search', 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.adapter.com/v1/knowledge/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'q' => 'pricing discussions with enterprise customers',
'limit' => 10,
'mode' => 'hybrid',
'sources' => [
'<string>'
],
'metadata' => [
'env' => 'staging',
'team' => 'growth'
],
'date_from' => '2026-01-15',
'date_to' => '2026-01-31',
'group_by' => 'document',
'include_evidence' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.adapter.com/v1/knowledge/search"
payload := strings.NewReader("{\n \"q\": \"pricing discussions with enterprise customers\",\n \"limit\": 10,\n \"mode\": \"hybrid\",\n \"sources\": [\n \"<string>\"\n ],\n \"metadata\": {\n \"env\": \"staging\",\n \"team\": \"growth\"\n },\n \"date_from\": \"2026-01-15\",\n \"date_to\": \"2026-01-31\",\n \"group_by\": \"document\",\n \"include_evidence\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.adapter.com/v1/knowledge/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"pricing discussions with enterprise customers\",\n \"limit\": 10,\n \"mode\": \"hybrid\",\n \"sources\": [\n \"<string>\"\n ],\n \"metadata\": {\n \"env\": \"staging\",\n \"team\": \"growth\"\n },\n \"date_from\": \"2026-01-15\",\n \"date_to\": \"2026-01-31\",\n \"group_by\": \"document\",\n \"include_evidence\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.adapter.com/v1/knowledge/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": \"pricing discussions with enterprise customers\",\n \"limit\": 10,\n \"mode\": \"hybrid\",\n \"sources\": [\n \"<string>\"\n ],\n \"metadata\": {\n \"env\": \"staging\",\n \"team\": \"growth\"\n },\n \"date_from\": \"2026-01-15\",\n \"date_to\": \"2026-01-31\",\n \"group_by\": \"document\",\n \"include_evidence\": false\n}"
response = http.request(request)
puts response.read_body{
"count": 1,
"results": [
{
"evidence_type": "<string>",
"id": "<string>",
"score": 123,
"snippet": "<string>",
"evidence": {},
"timestamp": "<string>",
"urn": "<string>"
}
]
}{
"error_code": "authentication_error",
"message": "Invalid or missing credentials.",
"details": {}
}{
"error_code": "permission_denied",
"message": "You do not have permission to perform this action.",
"details": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"type": "<string>",
"detail": "<string>",
"endpoint": "<string>",
"tier": "<string>",
"limit": 123,
"remaining": 123,
"window_seconds": 123,
"retry_after": 123,
"title": "Too Many Requests",
"status": 429,
"error_code": "rate_limit_exceeded",
"instance": "<string>"
}{
"error_code": "internal_server_error",
"message": "An unexpected error occurred.",
"details": {}
}{
"error_code": "service_unavailable",
"message": "The service is currently experiencing issues. Please try again later.",
"details": {}
}Search
Search across connected data sources. Returns ranked results with source metadata.
curl --request POST \
--url https://api.adapter.com/v1/knowledge/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "pricing discussions with enterprise customers",
"limit": 10,
"mode": "hybrid",
"sources": [
"<string>"
],
"metadata": {
"env": "staging",
"team": "growth"
},
"date_from": "2026-01-15",
"date_to": "2026-01-31",
"group_by": "document",
"include_evidence": false
}
'import requests
url = "https://api.adapter.com/v1/knowledge/search"
payload = {
"q": "pricing discussions with enterprise customers",
"limit": 10,
"mode": "hybrid",
"sources": ["<string>"],
"metadata": {
"env": "staging",
"team": "growth"
},
"date_from": "2026-01-15",
"date_to": "2026-01-31",
"group_by": "document",
"include_evidence": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
q: 'pricing discussions with enterprise customers',
limit: 10,
mode: 'hybrid',
sources: ['<string>'],
metadata: {env: 'staging', team: 'growth'},
date_from: '2026-01-15',
date_to: '2026-01-31',
group_by: 'document',
include_evidence: false
})
};
fetch('https://api.adapter.com/v1/knowledge/search', 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.adapter.com/v1/knowledge/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'q' => 'pricing discussions with enterprise customers',
'limit' => 10,
'mode' => 'hybrid',
'sources' => [
'<string>'
],
'metadata' => [
'env' => 'staging',
'team' => 'growth'
],
'date_from' => '2026-01-15',
'date_to' => '2026-01-31',
'group_by' => 'document',
'include_evidence' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.adapter.com/v1/knowledge/search"
payload := strings.NewReader("{\n \"q\": \"pricing discussions with enterprise customers\",\n \"limit\": 10,\n \"mode\": \"hybrid\",\n \"sources\": [\n \"<string>\"\n ],\n \"metadata\": {\n \"env\": \"staging\",\n \"team\": \"growth\"\n },\n \"date_from\": \"2026-01-15\",\n \"date_to\": \"2026-01-31\",\n \"group_by\": \"document\",\n \"include_evidence\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.adapter.com/v1/knowledge/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"pricing discussions with enterprise customers\",\n \"limit\": 10,\n \"mode\": \"hybrid\",\n \"sources\": [\n \"<string>\"\n ],\n \"metadata\": {\n \"env\": \"staging\",\n \"team\": \"growth\"\n },\n \"date_from\": \"2026-01-15\",\n \"date_to\": \"2026-01-31\",\n \"group_by\": \"document\",\n \"include_evidence\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.adapter.com/v1/knowledge/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": \"pricing discussions with enterprise customers\",\n \"limit\": 10,\n \"mode\": \"hybrid\",\n \"sources\": [\n \"<string>\"\n ],\n \"metadata\": {\n \"env\": \"staging\",\n \"team\": \"growth\"\n },\n \"date_from\": \"2026-01-15\",\n \"date_to\": \"2026-01-31\",\n \"group_by\": \"document\",\n \"include_evidence\": false\n}"
response = http.request(request)
puts response.read_body{
"count": 1,
"results": [
{
"evidence_type": "<string>",
"id": "<string>",
"score": 123,
"snippet": "<string>",
"evidence": {},
"timestamp": "<string>",
"urn": "<string>"
}
]
}{
"error_code": "authentication_error",
"message": "Invalid or missing credentials.",
"details": {}
}{
"error_code": "permission_denied",
"message": "You do not have permission to perform this action.",
"details": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"type": "<string>",
"detail": "<string>",
"endpoint": "<string>",
"tier": "<string>",
"limit": 123,
"remaining": 123,
"window_seconds": 123,
"retry_after": 123,
"title": "Too Many Requests",
"status": 429,
"error_code": "rate_limit_exceeded",
"instance": "<string>"
}{
"error_code": "internal_server_error",
"message": "An unexpected error occurred.",
"details": {}
}{
"error_code": "service_unavailable",
"message": "The service is currently experiencing issues. Please try again later.",
"details": {}
}Authorizations
Pass your pk_live_... API key as a Bearer token.
Body
1 - 1000"pricing discussions with enterprise customers"
1 <= x <= 20Search algorithm.
semantic, keyword, hybrid Filter by source types (e.g. ["email", "calendar_event"]). Max 20 items.
20Restrict results to evidence whose metadata contains ALL the given key/value pairs (AND-of-exact-match). Set via the custom-connector ingest metadata field. Max 20 keys; string values only.
Show child attributes
Show child attributes
{ "env": "staging", "team": "growth" }
Inclusive lower bound on evidence timestamp. Accepts RFC 3339 datetime (2026-01-15T00:00:00Z) or YYYY-MM-DD (treated as start-of-day UTC).
"2026-01-15"
Inclusive upper bound on evidence timestamp. YYYY-MM-DD treated as end-of-day UTC.
"2026-01-31"
Group results by document (deduplicates chunks) or chunk (raw chunk-level results).
document, chunk Include the full typed evidence object for each result. Requires a database round-trip.
Was this page helpful?