Start connecting a vendor (a connect URL for a person)
https://api.floconnector.com/v1/connections- Scope
connections.write- Rate limit
- the key's write budget, 60 a minute
An API call cannot consent at a vendor, so this connects nothing by itself: it answers a connect_url for a person to open. With email it makes a connect link for that person, which needs the Pro or Scale plan and makes them a member of the workspace; poll GET /v1/connections/pending/{id} with the returned pending_id until status is connected. Without email the URL is the caller's own connect and needs a dashboard session, so an API key must send email.
Body
The fields it takes:
vendorstringrequiredThe connector to connect, e.g. gmail.
Max length 60
toolsarray of stringoptionalThe tools to switch on once connected. Omit for the catalog default.
Up to 2000 items
emailstring (email)optionalWho will consent at the vendor. Given: a connect link is made for that person (Pro+), and the page asks for this address. Omitted: the connect is YOURS, and connect_url opens your own sign-in at the vendor (a signed-in person only; an API key must give an email).
send_emailbooleanoptionalWith email: true also emails the link to that person. Default false: you deliver the URL yourself.
expires_in_hoursintegernullableoptionalWith email: 1, 24, 168, 336 or 720 hours; null = never. Default 336 (14 days).
Responses
201Created
modeenumlink: a connect link for the person named in email. self: the caller's own connect, with no email given.
linkselfpending_idstringnullableIn link mode, the id to poll at GET /v1/connections/pending/{id}. Null in self mode: watch GET /v1/connections for the new connection instead.
connect_urlstringThe URL a person opens to connect the vendor. Nothing is connected until they do.
vendorstringThe connector being connected.
expires_atstringnullableWhen the connect link stops working, as an ISO 8601 timestamp. Null for a link that never expires, and always null in self mode.
howenumWhat opens at connect_url. oauth: the vendor's sign-in. dashboard: the dashboard's page for the connector, where a pasted credential or a site address is typed. vendor_install: the vendor's own install page, for a connector that installs from the vendor's side. link: the connect link page for the person in email.
oauthdashboardvendor_installlinkdashboard_urlstringThe dashboard's page for this connector, where the same connect can be started by hand.
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.