cURL
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": {} } ] } '
201
Example
{ "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 to an existing database.
Enter your Fillout API key. Format: Bearer <api_key>
The unique identifier of the database
Table name
1
Array of field definitions to create with the table
Show child attributes
Field type - see Field Types Reference for complete list of available types and their configurations
single_line_text
long_text
email
url
phone_number
number
currency
percent
rating
duration
single_select
multiple_select
checkbox
date
datetime
attachment
linked_record
lookup
Field name
Field-specific configuration options. See Field Types Reference for detailed template structure by field type.
Table created successfully
Unique identifier for the table
Name of the table
Display order of the table
ID of the primary field in the table
List of fields in the table
Unique identifier for the field
Name of the field
Display order of the field
List of views in the table
Unique identifier for the view
Name of the view
Type of the view (e.g., 'grid')
Configuration object for the view
Sort configuration for the view
Array of field IDs that are hidden in this view
Field width configuration for the view
Array of field IDs in the order they appear in this view
Was this page helpful?