Skip to main content
POST
Text-to-SQL

Authorizations

X-DOMO-Developer-Token
string
header
required

Domo Developer Token for authentication.

Body

application/json
input
string
required

The input text to send to the model.

dataSourceSchemas
object[]
required
model
string

The ID of the model to use.

modelConfiguration
object

Additional model-specific configuration key-value pairs (e.g., temperature).

Example:
promptTemplate
object

A prompt template object. The 'template' string should contain placeholders.

parameters
object

Custom parameters to inject into the prompt template.

Example:
system
string

The system message to use.

Response

The generated SQL query.

Standard successful AI response.

output
string
modelId
string