Skip to main content
POST
/
bases
/
{databaseId}
/
tables
Create table
curl --request POST \
  --url https://tables.fillout.com/api/v1/bases/{databaseId}/tables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "fields": [
    {
      "type": "<string>",
      "name": "<string>",
      "template": {}
    }
  ]
}'
{
"id": "<string>",
"name": "<string>",
"order": 123,
"primaryFieldId": "<string>",
"fields": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"template": {},
"order": 123
}
],
"views": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"config": {
"sorts": [
{}
],
"hiddenFieldIds": [
"<string>"
],
"fieldWidths": {},
"orderedFieldIds": [
"<string>"
]
}
}
]
}
Adds a new table with fields to an existing database.
At least one field must be specified. The first field becomes the primary field and must be a supported primary field type. Field names must be unique within the table.

Authorizations

Authorization
string
header
required

Enter your Fillout API key. Format: Bearer <api_key>

Path Parameters

databaseId
string
required

The unique identifier of the database

Body

application/json
name
string
required

Table name

Minimum length: 1
fields
object[]
required

Array of field definitions to create with the table

Minimum length: 1

Response

Table created successfully

id
string
required

Unique identifier for the table

name
string
required

Name of the table

order
integer
required

Display order of the table

primaryFieldId
string
required

ID of the primary field in the table

fields
object[]
required

List of fields in the table

views
object[]
required

List of views in the table

I