Skip to main content
POST
/
v1
/
table
/
create
Create a table
curl --request POST \
  --url https://api.databar.ai/v1/table/create \
  --header 'Content-Type: application/json' \
  --header 'x-apikey: <x-apikey>' \
  --data '
{
  "name": "<string>",
  "columns": [
    "<string>"
  ],
  "rows": 0
}
'
{
  "identifier": "123e4567-e89b-12d3-a456-426614174000",
  "name": "My Table",
  "created_at": "2023-05-01T12:00:00Z",
  "updated_at": "2023-05-01T12:00:00Z",
  "table_url": "https://databar.ai/tables?table=123e4567-e89b-12d3-a456-426614174000&workspace=abc12345-6789-0abc-def0-123456789abc"
}

Headers

x-apikey
string
required

API Key for authentication

Body

application/json
name
string | null
columns
string[] | null
rows
integer
default:0

Response

Table created successfully

identifier
string
required
name
string
required
created_at
string
required
updated_at
string
required
table_url
string
required
workspace_identifier
string | null