Send a connect link

POSThttps://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)required

Who will open the link and consent at each vendor. The page asks for this address.

itemsarray of objectrequired

One per connector to connect.

Up to 20 items

ShowHide 2 fields of each item
vendorstringrequired

The connector to connect, e.g. gmail.

Max length 60

toolsarray of stringoptional

The tools to switch on once connected. Omit for the catalog default.

Up to 2000 items

expires_in_hoursintegernullableoptional

How long the link lives: 1, 24, 168, 336 or 720 hours, or null for never. Default 336 (14 days).

send_emailbooleanoptional

true also emails the link to that person. Default false: you deliver the URL yourself.

Responses

201Created
linkobject

The link as it now stands.

ShowHide 10 fields
idstring

The connect link's id.

recipient_emailstring

The address the link was made for.

labelstringnullable

A generated name that tells links apart in the dashboard, never derived from the recipient. Null when the link has none.

statusenum

pending: 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.

pendingconnectedexpiredrevoked
expires_atstringnullable

When the URL stops working, ISO 8601 timestamp. Null for a link that never expires.

consumed_atstringnullable

When the last item was connected, ISO 8601 timestamp. Null until every item is.

revoked_atstringnullable

When the link was revoked, ISO 8601 timestamp. Null unless it is revoked now.

created_bystringnullable

The user id of the member who sent it. Null when an API key did.

created_atstring

When the link was first sent, ISO 8601 timestamp.

itemsarray of object

One per connector the link asks for, in the order they were added.

ShowHide 3 fields of each item
idstring

The item's id: the item_id of DELETE /v1/links/{id}/items/{item_id}.

vendorstring

The connector this item asks for, by vendor slug, e.g. gmail.

connected_atstringnullable

When the recipient connected this one, ISO 8601 timestamp. Null while they have not.

urlstring

The link's live URL, to hand to the recipient.

400validation: a field failed validation; field names it.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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.