Create a table
https://api.floconnector.com/v1/tables- Scope
tables.manage- Rate limit
- the key's write budget, 60 a minute
A table may start with no fields and grow them later. Name a key field when records have a natural identifier, so upserts update instead of duplicating.
Body
The fields it takes:
namestringrequiredWhat people call it, e.g. Leads. Its slug (leads) is derived from it and never changes.
Max length 80
descriptionstringoptionalOne line on what the table is for.
Max length 500
fieldsarray of objectoptionalThe columns. A table may start empty and grow fields later.
Default Up to 100 items
ShowHide 5 fields of each item
namestringrequiredLower snake case, e.g. company_name. Shown to people as "Company name".
typeenumrequiredThe field's type. text holds up to 2,000 characters and long_text up to 50,000; date is a calendar day (YYYY-MM-DD) and datetime a moment in ISO 8601 with a timezone; single_select and multi_select take one or several of the field's options.
textlong_textnumbercheckboxdatedatetimesingle_selectmulti_selectemailurlphonerequiredbooleanoptionalEvery record must have a value. Default false.
descriptionstringoptionalWhat the field holds, for whoever writes to it next.
Max length 500
optionsarray of stringoptionalThe allowed values. Required for single_select and multi_select.
keystringoptionalThe field that uniquely identifies a record (text, email, url, phone, number or date). Omit for no key.
Responses
201Created
tableobjectA table: its fields, its unique key and how many records it holds.
ShowHide 11 fields
idstringThe table's id.
slugstringThe table's short name in lower snake case, e.g. leads. Derived from the name when the table is created; it never changes.
namestringWhat people call the table.
descriptionstringnullableOne line on what the table is for. Null when none was given.
statusenumAn archived table can be read but not written until it is restored.
activearchivedfieldsarray of objectThe table's fields, in the order they are shown.
ShowHide 7 fields of each item
namestringThe field's name, as records carry it.
labelstringThe name as people read it: company_name becomes "Company name".
typeenumThe field's type. text holds up to 2,000 characters and long_text up to 50,000; date is a calendar day (YYYY-MM-DD) and datetime a moment in ISO 8601 with a timezone; single_select and multi_select take one or several of the field's options.
textlong_textnumbercheckboxdatedatetimesingle_selectmulti_selectemailurlphonerequiredbooleanWhether every record must have a value.
keybooleanoptionaltrue on the table's unique key field. Left out on every other field.
descriptionstringoptionalWhat the field holds. Left out when none was given.
optionsarray of stringoptionalThe allowed values. Present on single_select and multi_select fields only.
key_fieldstringnullableThe name of the unique key field. Null when the table has no key.
record_countintegerHow many records the table holds.
archived_atstringnullableWhen the table was archived, ISO 8601. Null while it is active.
created_atstringWhen the table was created, ISO 8601.
updated_atstringWhen the table last changed, ISO 8601.
400validation: a field failed validation; field names it.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
401unauthorized: no key, or an unknown, revoked or expired key.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
403insufficient_scope: the key lacks the route's scope, named in required. Or forbidden, or plan_limit when the plan does not include the API.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
404not_found: the thing is not in this workspace.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
429rate_limited: the key's per-minute budget is spent. Retry after Retry-After seconds.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
Errors lists every error code and what to do about it.