Skip to main content
Generate SQL filter from natural language using AI
curl --request POST \
  --url https://api.ionworks.com/cell_measurements/filter-steps/generate \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "measurement_id": "<string>",
  "current_sql": "<string>"
}
'
{
  "sql_where_clause": "<string>",
  "match_mode": "<string>",
  "explanation": "<string>"
}

Body

application/json

Request body for AI-powered SQL filter generation.

prompt
string
required
measurement_id
string
required
current_sql
string | null

Response

Successful Response

Response body for AI-powered SQL filter generation.

sql_where_clause
string
required
match_mode
string
required
explanation
string
required