Tables
List columns
Retrieve the column definitions for a table.
GET
/
v1
/
tables
/
{table_id}
/
columns
const columns = await client.tables.columns("tbl_abc123");
for (const col of columns.data) {
console.log(`${col.key} (${col.type}): ${col.label}`);
}
{
"data": [
{ "key": "product_name", "label": "Product Name", "type": "text", "required": true },
{ "key": "price", "label": "Price", "type": "number" },
{ "key": "image_url", "label": "Image", "type": "image" }
]
}
Path parameters
The unique identifier of the table.
Response
Show Column object
Show Column object
Machine-readable column key (snake_case).
Human-readable column label.
Column data type. One of:
text, number, url, email, date, boolean, richtext, enum, tags, image, images, json.Whether the column is required.
Optional description of the column.
Allowed values for
enum type columns.const columns = await client.tables.columns("tbl_abc123");
for (const col of columns.data) {
console.log(`${col.key} (${col.type}): ${col.label}`);
}
{
"data": [
{ "key": "product_name", "label": "Product Name", "type": "text", "required": true },
{ "key": "price", "label": "Price", "type": "number" },
{ "key": "image_url", "label": "Image", "type": "image" }
]
}
⌘I
const columns = await client.tables.columns("tbl_abc123");
for (const col of columns.data) {
console.log(`${col.key} (${col.type}): ${col.label}`);
}
{
"data": [
{ "key": "product_name", "label": "Product Name", "type": "text", "required": true },
{ "key": "price", "label": "Price", "type": "number" },
{ "key": "image_url", "label": "Image", "type": "image" }
]
}

