Skip to main content
GET
Get SQL schema
Returns the database schema — tables, their fields, and the link tables that connect them — using human-readable names. Use this to discover the exact table and field names to reference from Run SQL.
Names in the response match the human-readable names used in your SQL queries and the Zite SDK.

Query parameters

linkTables describes the junction tables that connect two tables for many-to-many relationships. Each entry exposes the source and target tables along with the columns to join on, so you can traverse linked records in SQL.

Authorizations

Authorization
string
header
required

Enter your Zite API key. Format: Bearer <api_key>

Path Parameters

databaseId
string
required

The unique identifier of the database

Query Parameters

tables
string[]

Optional whitelist of table names to include. Repeat the parameter for multiple tables (or pass a single comma-separated string). Omit to return all tables.

includeFields
boolean
default:true

Whether to include field-level detail for each table. Set to false for a cheap overview of just table names.

Response

Database schema

tables
object[]
required

The tables in the database.

The junction tables linking tables together for many-to-many relationships.