Skip to main content
POST
Generate a SbQL query from natural language

Authorizations

x-access-token
string
header
required

Organization API token. Generate from Organization Settings → API Tokens.

Body

application/json
prompt
string
required

Natural language description of the data you want to query.

Example:

"Show me all accepted sessions with their speakers"

eventId
integer

Scope to a single event for context.

eventIds
integer[]

Scope to multiple events for context.

conversationHistory
object[]

Previous conversation turns for multi-turn query refinement.

Response

OK

query
string

The generated SbQL query.

explanation
string

Human-readable explanation of the generated query.