---
title: "Run Query"
method: POST
path: "/api/query/_run"
tags: ["query"]
---

# Run Query

`POST /api/query/_run`

## Request

- Base URL: `https://app.myriade.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.myriade.ai/api/query/_run`
- Auth: none declared

Run a query against the database.

Returns:
    {"rows": [...], "count": int, "columns": [...]}

## Cookies

- `session` string, nullable

## Request body

- RunQueryRequest
  - `databaseId` string, required
  - `query` string, required
  - `executionId` string, nullable
  - `queryId` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/myriade/apis/myriade-bi-api.md) · [All operations](https://skmtc.dev/myriade/apis/myriade-bi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/myriade/apis/myriade-bi-api/revisions/15b7cb96ca80?raw)
