---
title: "Execute an SQL query on the database"
method: POST
path: "/queryAPI"
---

# Execute an SQL query on the database

`POST /queryAPI`

## Request body

- object
  - `url` string, required — The URL of the database.
  - `sql` string, required — The SQL query to execute.

## Response `200`

OK

- object
  - `response` object — The response returned by the SQL query.

---

[API](https://skmtc.dev/aircodelabs/apis/postgresql-database-query-plugin.md) · [All operations](https://skmtc.dev/aircodelabs/apis/postgresql-database-query-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aircodelabs/postgresql-database-query-plugin/revisions/d8f70e6aee8a/schema)
