GET/api/v1/documents/facets
List document filter values
Every executive, company and communication type a document picker can filter by.<br/><br/>Values come from the whole workspace, not one page of documents (KS-421):<br/>a picker that built its options from the 50 documents it opened on could<br/>not offer a company with no document among those 50 — on the S&P TOP 15<br/>workspace that was NVIDIA, its own anchor company. Pass the same<br/>exclude_persona_kbs as the listing the picker filters, then send a chosen<br/>value back as executive, company or communication_type on<br/>GET /api/v1/documents.
REQUEST
curl "https://gateway.kumkuat.ai/api/v1/documents/facets" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://gateway.kumkuat.ai/api/v1/documents/facets", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/documents/facets", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
