Skip to main content
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

table_id
string
required
The unique identifier of the table.

Response

data
array
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" }
  ]
}