API Reference›Information Schema
API Reference

Information Schema

List tables and their columns.

List tables

GET/v1/information_schema

List tables, with optional filters and pagination. schema and table accept SQL % wildcards. Set include_columns=true to include each table's columns.

Each table reports its partition_by and sorted_by layout, which is fixed when the table is created. An empty array means none was set. An API key limited to one database must pass that database's connection_id.

Query parameters

NameTypeDescription
connection_idstringFilter by connection ID
schemastringFilter by schema name (supports % wildcards)
tablestringFilter by table name (supports % wildcards)
include_columnsbooleanInclude each table's columns. Default: false.
limitintegerTables per page. Default 100, maximum 1000.
cursorstringThe next_cursor from the previous page

Response 200 — Table metadata

NameTypeDescription
count (required)integerNumber of tables on this page, not the total. An empty tables array does not mean the listing is finished: check has_more.
has_more (required)booleanWhether more tables follow. Fetch them with next_cursor.
limit (required)integerPage size used: the limit you sent, capped at the maximum, or the default when omitted.
next_cursorstringCursor for the next page, present only when has_more is true. Pass it as the cursor query parameter.
tables (required)TableInfo[]Tables on this page.
Fields of tables
NameTypeDescription
tables[].columnsColumnInfo[]Table columns. Present only when the request sets include_columns=true.
tables[].columns[].data_type (required)stringColumn type, such as Int64, Utf8 or Timestamp(µs).
tables[].columns[].name (required)stringColumn name.
tables[].columns[].nullable (required)booleanWhether the column can hold nulls.
tables[].connection (required)stringName of the connection that holds the table.
tables[].constant_per_key (required)string[]Columns that hold the same value for every row sharing a key, which lets keyed mutations search fewer files; empty when none are declared. Unlike partition_by and sorted_by, this can change after creation.
tables[].last_syncstringWhen the table's data was last loaded or synced; null if never.
tables[].layout (required)TableLayoutHow a table's data files are written. Set when the table is created and fixed after that. - analytical (default): data pages sized for scans. - point_lookup: small data pages, so fetching rows by ID is cheap, as vector search results do. Scans of the table read more pages.
tables[].partition_by (required)TablePartitionKey[]Partition keys, in the order declared when the table was created; empty when it is not partitioned. Reported only for tables in a Hotdata-instant database: other tables always return an empty array.
tables[].partition_by[].column (required)stringColumn the key reads.
tables[].partition_by[].transform (required)stringHow the key is derived from the column: identity (the value itself), year, month, day or hour.
tables[].schema (required)stringSchema name.
tables[].sorted_by (required)TableSortKey[]Sort keys, in the order declared when the table was created; empty when none were declared. Reported only for tables in a Hotdata-managed database, like partition_by.
tables[].sorted_by[].column (required)stringColumn to sort by.
tables[].sorted_by[].directionstringasc (default) or desc. Null in a response when it was not set.
tables[].sorted_by[].nullsstringWhere nulls go: first or last. Defaults to last for asc and first for desc; null in a response when it was not set.
tables[].synced (required)booleanWhether the table has data loaded.
tables[].table (required)stringTable name.
Example response
{
  "count": 0,
  "has_more": true,
  "limit": 0,
  "next_cursor": "string",
  "tables": [
    {
      "columns": [
        {}
      ],
      "connection": "string",
      "constant_per_key": [
        "string"
      ],
      "last_sync": "string",
      "layout": "analytical",
      "partition_by": [
        {}
      ],
      "schema": "string",
      "sorted_by": [
        {}
      ],
      "synced": true,
      "table": "string"
    }
  ]
}

Errors

StatusDescription
403The API key is limited to one database, and connection_id does not name that database's connection
404Connection not found