ReportMeta
What the report page needs to render a saved query as a form. Deliberately excludes the SQL: the report page is the one place a query is not meant to be read as SQL, so this is strictly less than GET /queries/{id}.
Properties
| Name | Type | Description |
|---|---|---|
| id | string | |
| title | string | |
| description | stringnull | |
| connection | objectnull | Where the numbers come from. Null when the query has no connection, in which case it cannot be run. |
| variables | array | The filters a reader fills in. Supply values to POST /queries/{id}/run. |
| chart | object | Null means decide from the result shape, which is the common case. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/saturnsql-com/json-schema/saturnsql-com-report-meta-schema.json",
"title": "ReportMeta",
"description": "What the report page needs to render a saved query as a form. Deliberately excludes the SQL: the report page is the one place a query is not meant to be read as SQL, so this is strictly less than GET /queries/{id}.",
"x-generated": "2026-11-23",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/saturnsql-com-openapi.yaml#/components/schemas/ReportMeta",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"connection": {
"type": [
"object",
"null"
],
"description": "Where the numbers come from. Null when the query has no connection, in which case it cannot be run.",
"properties": {
"name": {
"type": "string"
},
"database": {
"type": "string"
}
}
},
"variables": {
"type": "array",
"description": "The filters a reader fills in. Supply values to POST /queries/{id}/run.",
"items": {
"$ref": "#/$defs/QueryVariable"
}
},
"chart": {
"allOf": [
{
"$ref": "#/$defs/ChartSpec"
}
],
"nullable": true,
"description": "Null means decide from the result shape, which is the common case."
}
},
"$defs": {
"ChartSpec": {
"type": "object",
"description": "How a report should be drawn. Stored verbatim and interpreted at render time, since the columns a spec refers to only exist after a run: a spec naming a column the SELECT list no longer returns falls back to the shape-derived guess rather than failing.\n\nWith no spec stored, the result shape decides — see the \"saved query is also a report page\" section of the API guide for the rules an agent should write SQL against.",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"line",
"area",
"bar",
"scatter",
"share",
"number",
"none"
],
"description": "`none` suppresses the chart for good, which is why it is distinct from a null `chart`. `share` is never guessed and must be set explicitly: its shape is identical to `bar` and nothing in the data says which is meant."
},
"x": {
"type": "string",
"description": "Column for the x axis or the category. Absent for `number`."
},
"series": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 3,
"description": "Measure columns, in order. Capped at 3: the validated palette separates three series by lightness and a fourth has no colour."
},
"group": {
"type": "string",
"description": "Low-cardinality column splitting a scatter into groups."
}
}
},
"QueryVariable": {
"type": "object",
"description": "One `{{name}}` variable declared by a saved query. Values are supplied to POST /queries/{id}/run and substituted server side.",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string",
"description": "Matches `[A-Za-z_][A-Za-z0-9_]*`"
},
"type": {
"type": "string",
"enum": [
"date",
"text",
"number",
"boolean",
"dropdown"
]
},
"required": {
"type": "boolean",
"description": "An empty value for a required variable is a 422, not an empty substitution."
},
"default": {
"type": [
"object",
"null"
],
"description": "Used when the value is absent. A `relative` default is only valid on a `date` variable and resolves against the caller time zone (or the schedule time zone).",
"properties": {
"kind": {
"type": "string",
"enum": [
"fixed",
"relative"
]
},
"value": {
"type": "string",
"description": "Literal for `fixed`; one of today, yesterday, 7_days_ago, 30_days_ago, 90_days_ago, start_of_this_month, start_of_last_month, end_of_last_month, start_of_this_year for `relative`."
}
}
},
"options": {
"type": "array",
"items": {
"type": "string"
},
"description": "Dropdown only, non-empty. A value outside this list is a 422."
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/saturnsql-com-report-meta"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.