---
title: "Generate SQL query from an input that has a question and database schemas"
method: POST
path: "/client/ai_assistants/database"
---

# Generate SQL query from an input that has a question and database schemas

`POST /client/ai_assistants/database`

## Request

- Base URL: `https://api.border0.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.border0.com/client/ai_assistants/database`
- Auth: none declared

## Request body

- LlmDatabaseAgentInput
  - `database_name` string
  - `database_type` string
  - `question` string
  - `schemas` string

## Response `200`

OK

- object
  - `response` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `500`: Internal Server Error

---

[API](https://skmtc.dev/border0/apis/border0-api.md) - [All operations](https://skmtc.dev/border0/apis/border0-api/llms.txt) - [OpenAPI document](https://skmtc.dev/border0/apis/border0-api/revisions/f0ccef7418d8?raw)
