Save a query.
sql_text is stored exactly as written and is NOT checked here — the
restrictions on what may run are applied at execution time, so SQL that
saves cleanly can still be refused by POST /queries/run. Names must be
unique within the organization.
params is a JSON array declaring the query’s positional parameters for the
editor; the server stores it verbatim and never interprets it.
Authorizations
A scoped AgentEye API key. Mint one in the dashboard under Settings → API keys, or with POST /v1/keys. Each endpoint names the permission it requires; a key without it gets 403 and a required_permission field naming what was missing.
Response
The created saved query.

