Send a connect link
https://api.floconnector.com/v1/links- Scope
links.write- Rate limit
- the key's write budget, 60 a minute
Nothing is connected by this call: the response carries the URL to hand over, and send_email: true emails it too. Each recipient has one link per workspace, so sending to an address that already has one adds the new connectors to that link instead of making a second. The link keeps its URL, unless it had been revoked: then it reopens on a new URL and the revoked one stays dead. The recipient becomes a member of the workspace, so the plan's member limit applies. Connect links are on the Pro and Scale plans; below that the call answers 403 plan_limit.
Body
The fields it takes:
emailstring (email)requiredWho will open the link and consent at each vendor. The page asks for this address.
itemsarray of objectrequiredOne per connector to connect.
Up to 20 items
ShowHide 2 fields of each item
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
expires_in_hoursintegernullableoptionalHow long the link lives: 1, 24, 168, 336 or 720 hours, or null for never. Default 336 (14 days).
send_emailbooleanoptionaltrue also emails the link to that person. Default false: you deliver the URL yourself.
Responses
201Created
linkobjectThe link as it now stands.
ShowHide 10 fields
idstringThe connect link's id.
recipient_emailstringThe address the link was made for.
labelstringnullableA generated name that tells links apart in the dashboard, never derived from the recipient. Null when the link has none.
statusenumpending: live and waiting on at least one item. connected: every item is connected. expired: past expires_at. revoked: switched off by the sender. A resend brings an expired or revoked link back.
pendingconnectedexpiredrevokedexpires_atstringnullableWhen the URL stops working, ISO 8601 timestamp. Null for a link that never expires.
consumed_atstringnullableWhen the last item was connected, ISO 8601 timestamp. Null until every item is.
revoked_atstringnullableWhen the link was revoked, ISO 8601 timestamp. Null unless it is revoked now.
created_bystringnullableThe user id of the member who sent it. Null when an API key did.
created_atstringWhen the link was first sent, ISO 8601 timestamp.
itemsarray of objectOne per connector the link asks for, in the order they were added.
ShowHide 3 fields of each item
idstringThe item's id: the item_id of DELETE /v1/links/{id}/items/{item_id}.
vendorstringThe connector this item asks for, by vendor slug, e.g. gmail.
connected_atstringnullableWhen the recipient connected this one, ISO 8601 timestamp. Null while they have not.
urlstringThe link's live URL, to hand to the recipient.
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.