---
title: "Validate SQL query syntax"
method: POST
path: "/mysql/query/validate"
tags: ["Service:_MySQL"]
---

# Validate SQL query syntax

`POST /mysql/query/validate`

> This endpoint **may be changed or removed at any time**. Don't use it in production environments.

## Request body

- MySQLServiceQueryValidateRequestBody — MySQLServiceQueryValidateRequestBody
  - `do_not_store` boolean — Do not store details
  - `query` string, required — Query

## Response `200`

Response

- MySQLServiceQueryValidateResponse — MySQLServiceQueryValidateResponse
  - `status` string, required — Status

## Other responses

- `400` — Invalid request parameters

---

[API](https://skmtc.net/aiven/apis/aiven-api-documentation.md) · [All operations](https://skmtc.net/aiven/apis/aiven-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aiven/aiven-api-documentation/revisions/cbfbf0f96a48/schema)
