List SQL Queries
Changed onList your saved queries. Returns { status, result: [...] } following the house list-endpoint standard; there is no total key. Page by requesting successive page values until a short page is returned.
Request
- Base URLhttps://api.us-e1.tago.io
- AuthAPI key in header Profile-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Columns to project, repeated (fields[]=id&fields[]=name) or comma-joined (fields=id,name). Allowlisted to id, name, tags, active, created_at, updated_at. Any other field is a 400; the remaining row fields, including query, params, and the derived session_context, are returned by GET /sql/{sqlID}. Default ["id","name","tags"].
Case-insensitive substring match on name.
Boolean (true/1 vs anything else).
Tag match key (paired with the value; applied as a jsonb containment).
Tag match value (paired with the key).
Column + direction: orderBy=name,asc. Column allowlisted to name / updated_at / created_at; anything else falls back to created_at. A bare list defaults to created_at descending.
Default 20, clamped 1..=100.
1-based, floor 1.
Response
List of your saved queries (projected to the requested fields).
Example response
{
"status": true,
"result": [
{
"id": "6a1b2c3d4e5f6a1b2c3d4e5f",
"name": "hot sensors",
"active": true
}
]
}Changes
- info
endpoint added
- info