Skip to main content
POST
SQL Console
Every /data endpoint needs the Intermediary plan or higher, on the database owner’s account — not the caller’s. Below that the answer is PLAN_RESTRICTED_FEATURE (403). It is also dashboard-session only: an API key gets API_KEY_SCOPE_DENIED (403) here, regardless of its scopes.
PostgreSQL and MySQL only. The statement runs as your database’s own user — it is your database, and nothing in it is filtered or rewritten. What is enforced are limits: Requires owner or admin in the workspace, and is recorded in the activity log (the fact that a query ran — never the SQL itself).
string
required
The ID of the database.
string
required
The statement. Empty bodies are rejected.
number
Row ceiling. The result is truncated, not the statement.
string
Workspace the database belongs to.

Response

object