Translate plain English into HQL

POST /Platform/query/translate

Translate plain English into HQL. An LLM writes the query from your text and the type's schema; nothing is run. Check the returned hql and warnings before running it with run_hql.

To query a list inside a stored value, pass its handle (and path, plus headers_path for list-shaped rows), or a current_hql that starts with handle(...). The model then sees the value's columns (name, original header, kind, sample values) and writes a query that starts with that source; the result is checked against the columns without running it, and any problem is returned in warnings.

Body parameters

Returns

QueryTranslation

Example request

curl -X POST "https://api.hilus.ai/Platform/query/translate" \
  -H "Authorization: Bearer $HILUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'