Skip to main content
POST
Natural-language query (AI)

Authorizations

x-api-key
string
header
required

Optional API key for authentication (enabled via application.yaml)

Body

application/json
question
string
required

Plain-English question to answer

table
string
required

PostgreSQL table to query

database
string
default:datris

PostgreSQL database name

schema
string
default:public

PostgreSQL schema

limit
integer
default:100

Maximum rows to return

Response

Generated SQL and query results

question
string
sql
string
results
object[]
count
integer