---
title: "Create table (Developer API)"
method: POST
path: "/api/v1/table/create"
tags: ["Table"]
---

# Create table (Developer API)

`POST /api/v1/table/create`

## Request

- Base URL: `https://stackby.com`
- URL: `https://stackby.com/api/v1/table/create`
- Auth: API key in header `X-API-Key`

## Request body

- object
  - `name` string
  - `stackId` string
  - `columns` object[]
    - `name` string
    - `type` string

## Response `201`

Table created successfully

- object
  - `success` boolean
  - `message` string
  - `data` object
    - `id` integer
    - `name` string
    - `stackId` integer
    - `columns` Column[]
      - `id` integer
      - `name` string
      - `type` 'text' | 'number' | 'date' | 'select' | 'multiselect' | 'checkbox' | 'attachment' | 'link' | 'formula'
      - `tableId` integer
      - `metadata` object
    - `createdAt` string, date-time
  - `timestamp` string, date-time

---

[API](https://skmtc.dev/stackby/apis/stackby-api-complete-documentation.md) - [All operations](https://skmtc.dev/stackby/apis/stackby-api-complete-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/stackby/apis/stackby-api-complete-documentation/revisions/c9909a003a56?raw)
