Skip to main content
POST
/
orgs
/
{org_id}
/
k2
/
{kb_id}
/
query
cURL
curl --request POST \
  --url https://api.timbal.ai/orgs/{org_id}/k2/{kb_id}/query \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sql": "<string>"
}
'

Authorizations

Authorization
string
header
required

Timbal API key. Obtain your API key from the Timbal platform settings. See Authentication for more information.

Path Parameters

org_id
string
required
kb_id
string
required

Body

application/json
sql
string
required

SQL query to execute against the knowledge base

Response

200 - application/json

Query results as JSON