Scheduler Zero
REST APIAPI referenceSql

Get the queryable SQL schema

Self-documentation for the SQL query interface: every view (table) you can `SELECT` from via `POST /v1/sql/query`, its columns (name, type, description), and the interface's limits. Call this before writing a query — this is a curated set of tenant-scoped views, not the full production schema, and `runSqlQuery` only accepts relations listed here. Requires the `sql:query` permission and workspace enrollment in the SQL query private alpha (`403` otherwise, contact us to request access).

GET
/sql/schema

Self-documentation for the SQL query interface: every view (table) you can SELECT from via POST /v1/sql/query, its columns (name, type, description), and the interface's limits. Call this before writing a query — this is a curated set of tenant-scoped views, not the full production schema, and runSqlQuery only accepts relations listed here. Requires the sql:query permission and workspace enrollment in the SQL query private alpha (403 otherwise, contact us to request access).

Authorization

ApiKeyAuth
x-api-key<token>

API key created under Settings → API Keys. Scoped to a single workspace.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/sql/schema"
{  "tables": [    {      "name": "string",      "description": "string",      "columns": [        {          "name": "string",          "type": "string",          "description": "string"        }      ]    }  ],  "limits": {    "statementTimeoutSeconds": 0,    "tempFileLimitMb": 0,    "maxRows": 0,    "rateLimitPerSecond": 0,    "maxConcurrentQueries": 0  }}