---
title: "Translate natural language to SQL."
method: POST
path: "/api/v1/nl-to-sql"
tags: ["Database"]
---

# Translate natural language to SQL.

`POST /api/v1/nl-to-sql`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/api/v1/nl-to-sql`
- Auth: HTTP bearer

Generates a SQL statement from a natural-language description of the desired query.

## Response `200`

Generated SQL

## Other responses

- `401`: Missing or invalid API key
- `500`: Internal error

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
