Skip to main content
POST
catalog

Authorizations

X-API-Key
string
header
required

Path Parameters

workspace_id
string<uuid>
required

Workspace identifier.

Body

application/json

catalog: no sql describes the catalog's tables; one sql runs a read-only SELECT over them.

sql
string | null

One read-only SELECT (or WITH ... SELECT) over the catalog tables; omit to list the tables.

Minimum string length: 1

Response

Successful Response

A describe fills tables/empty_tables; a query fills columns/rows/row_count/truncated.

columns
string[] | null

With sql: the result's column names, in order.

empty_tables
CatalogEmptyTable · object[] | null

Document types with no records here: queryable, every query over them is empty.

row_count
integer | null

With sql: how many rows rows holds.

rows
Rows · object[] | null

With sql: the result rows, each keyed by column name.

tables
CatalogTable · object[] | null

Without sql: catalog_document and every document-type table with records.

truncated
boolean | null

True when the result had more rows than were returned.