Skip to main content
GET
List Tables and Columns
Every /data endpoint needs the Intermediary plan or higher, on the database owner’s account — not the caller’s. Below that the answer is PLAN_RESTRICTED_FEATURE (403). It is also dashboard-session only: an API key gets API_KEY_SCOPE_DENIED (403) here, regardless of its scopes.
PostgreSQL and MySQL only.
string
required
The ID of the database.
string
required
Schema to list. Must be one of the names returned by /data/schemas — anything else answers OBJECT_NOT_FOUND.
string
Workspace the database belongs to.

Response

object[]

Columns and indexes

string
/v1/databases/{id}/data/tables/{table}/columns?schema=
Returns { columns, indexes }. Each column carries name, data_type, nullable, default_value, is_primary_key, is_unique, is_foreign_key and, for a foreign key, references ({ schema, table, column }). Each index carries name, columns, unique, primary and size_bytes.