Referenta
POST
/api/v1/knowledgebase/facets

Returns filter facet data for the current knowledgebase query. The exact facet keys depend on the upstream index configuration.

Authorization

dashboardSession
sb-access-token<token>

Authenticated dashboard session cookie. Some routes also rely on additional Supabase SSR cookies.

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/knowledgebase/facets" \  -H "Content-Type: application/json" \  -d '{}'
{
  "facets": {
    "property1": [
      {}
    ],
    "property2": [
      {}
    ]
  }
}
{
  "error": "string",
  "details": "string",
  "receivedKeys": [
    "string"
  ]
}
{
  "error": "string",
  "details": "string",
  "receivedKeys": [
    "string"
  ]
}