Skip to main content
PUT
Save a query

Authorizations

X-API-Key
string
header
required

API key for authentication. Each key is bound to a specific account.

Path Parameters

database_id
string
required

Database ID (UUID) or short id (the database_id field, e.g. a1b2c3d4)

Body

application/json
name
string
required
Example:

"active-users"

statement
string
required
Example:

"SELECT count(*) FROM users WHERE active;"

Response

Saved query

success
boolean
query
object
Last modified on October 5, 2026