---
title: "POST /public/sql/v1/execute"
method: POST
path: "/public/sql/v1/execute"
tags: ["beta", "sql"]
---

# POST /public/sql/v1/execute

`POST /public/sql/v1/execute`

## Request

- Base URL: `https://developers.conduktor.io` (the document declares no server; this is the origin it was published from)
- URL: `https://developers.conduktor.io/public/sql/v1/execute`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/conduktor/apis/conduktor-console-api/docs/public/sql/v1/execute/post.ts> (a function with typed inputs; its response is checked against the schema)

Run a SQL query. Admin API keys are currently not supported, please use a User API key instead.

## Query parameters

- `maxLine` integer, required

## Request body `text/plain`

- string

## Response `200`

- SqlResultApiResponse
  - `header` string[]
  - `row` array[]
    - unknown[]
      - unknown

## Other responses

- `400`: The request is not valid
- `401`: The user is not authenticated
- `403`: The user doesn't have sufficient privilege to do this operation
- `500`: An unexpected error occurred in the server

---

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