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": "single_line_text",
      "name": "<string>",
      "template": {}
    }
  ]
}'
{
"id": "<string>",
"name": "<string>",
"order": 123,
"primaryFieldId": "<string>",
"fields": [
{
"id": "<string>",
"name": "<string>",
"type": "single_line_text",
"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

Path Parameters

databaseId
string
required

Body

application/json
name
string
required
Minimum length: 1
fields
object[]
required
Minimum length: 1

Response

id
string
required
name
string
required
order
integer
required
primaryFieldId
string
required
fields
object[]
required
views
object[]
required