Skip to main content
POST

Authorizations

Authorization
string
header
required

API key (fam_..., created under Settings → API Keys) or an OAuth 2.0 access token (fam_at_...). REST operations also require API Access for the credential's workspace. Keys can be restricted to scopes such as assistants:read, calls:write, campaigns:write, automations:read, dashboards:read, dashboards:write, leads:write, segments:write, loop:read, loop:write, phone_numbers:write, sip_trunks:write, knowledge:write, voices:read, billing:read, billing:write, settings:write, platform:read, platform:write; a *:write scope implies the matching *:read. Automation and dashboard endpoints also accept the legacy calls:* scope. Keys without scope restrictions have full access within the workspace's available capabilities.

Path Parameters

id
string<uuid>
required

Knowledge base ID.

Body

application/json

Send query or table_query. If both are present, only table_query is evaluated.

query
string
required

Natural-language question to search document excerpts (max 2000 characters).

Required string length: 1 - 2000
table_query
object

Exact table lookup or aggregate (rows, count, sum, min, max) on one sheet; use instead of query. Take document_id, sheet and column keys from earlier search results.

Response

Search results with content, similarity, document reference and source (file, sheet, row, cells, indexed time and match method), or a table result with matching row count, exact decimal value as a string, unit, rows and display truncation flag.

data
object