Query records
https://api.floconnector.com/v1/tables/{id}/records/query- Scope
tables.read- Rate limit
- the key's read budget, 120 a minute
Filter, sort, search or count records. Text matching is case-insensitive. Pass cursor from the previous page's next_cursor to continue; count_only returns just the total.
Path parameters
The table: its slug (e.g. leads), its name, or its id.
Body
The fields it takes:
wherearray of objectoptionalFilters, up to 20. Omit to match every record.
Up to 20 items
ShowHide 3 fields of each item
fieldstringrequiredA field name, or id (the record number) / created_at / updated_at.
openumrequiredThe comparison. Text matches ignore case. contains, not_contains and starts_with match part of a text value; in and not_in take a list; on a multi_select field, contains means the record has every value given and in means it has any of them.
eqneqgtgteltltecontainsnot_containsstarts_withinnot_inis_emptyis_not_emptyvaluestring | number | boolean | array of string | number | booleannullableoptionalNot needed for is_empty / is_not_empty. A list for in / not_in.
matchenumoptionalall = every filter must match (default); any = at least one.
allanysortarray of objectoptionalUp to 5 sort keys, applied in order. Default: by record id, ascending.
Up to 5 items
ShowHide 2 fields of each item
fieldstringrequiredA field name, or id (the record number) / created_at / updated_at.
directionenumoptionalasc (the default) or desc. Records with no value for the field sort last either way.
ascdescfieldsarray of stringoptionalReturn only these fields, plus id and version. Name created_at or updated_at to keep them.
limitintegeroptionalRecords per page, default 50.
Range 1 to 200
cursorstringoptionalThe next_cursor from the previous page.
count_onlybooleanoptionalReturn only how many records match.
Responses
200Success
Either
recordsarray of objectOne page of the matching records.
ShowHide 4 fields of each item
idintegerThe record id: its number in the table (1, 2, 3…). A number is never reused.
created_atstringWhen the record was created, ISO 8601. Left out when a query's fields list does not name it.
updated_atstringWhen the record last changed, ISO 8601. Left out when a query's fields list does not name it.
versionintegerGoes up by one each time the record changes. Send it back as expected_version to guard an update.
totalintegerMatching records across every page.
next_cursorstringnullablePass it as cursor to get the next page. Null on the last page.
Or
totalintegerHow many records match.
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.