Where a connect request stands
https://api.floconnector.com/v1/connections/pending/{id}- Scope
connections.read- Rate limit
- the key's read budget, 120 a minute
Poll this after POST /v1/connections with an email. status moves from pending to connected once the person consents at the vendor, and connection is filled in then; expired and revoked mean nothing was connected. connect_url is returned only while the request is pending.
Path parameters
The pending id a POST /v1/connections answered with.
Responses
200Success
idstringThe pending id: this vendor's request on the recipient's connect link.
link_idstringThe connect link the request sits on. Each recipient address has one: revoke, resend or reset it through /v1/links.
vendorstringThe connector being connected.
statusenumpending: nobody has consented at the vendor yet. connected: the consent landed. expired: the connect link ran out first. revoked: the connect link was revoked.
pendingconnectedexpiredrevokedconnectionobjectnullableThe connection, once status is connected. Null until then.
ShowHide 17 fields
idstringThe connection's id.
vendorstringThe connector's vendor slug, e.g. xero.
orgstringnullableThe best name for the connected account: label, else resolved_name, else handle. Null when none of them is set.
labelstringnullableThe name a person gave the account in FloConnector. Null when none is set.
resolved_namestringnullableThe vendor's own name for the account, as FloConnector resolved it. Null when the vendor gave none.
account_refstringnullableWhat tells this account apart from another of the same name: an email, a shop domain or a channel id. Null when none was found.
handlestringnullableA short, stable handle for this account among the workspace's connections to the same vendor. Null when it has none.
providerenumWho runs the connection's calls: native (FloConnector's own integration), composio, or first_party (FloConnector's own tools, with no vendor behind them).
nativecomposiofirst_partyvendor_tenant_idstringThe vendor's own id for the connected organisation or account. Not a FloConnector id.
statusenumactive: working. needs_reauth: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. revoked: access was withdrawn.
activeneeds_reauthrevokedplatform_billing_statusenumFor a connector billed through the vendor's own marketplace, where that subscription stands: active, pending (installed, no subscription confirmed yet), cancelled, frozen (the vendor froze the account's billing) or unknown (the check failed). not_required for every other connector.
not_requiredactivependingcancelledfrozenunknownplatform_plan_handlestringnullableThe plan the account is on in the vendor's marketplace, as the vendor names it. Null when that does not apply.
connected_atstringWhen it was connected, as an ISO 8601 timestamp.
connected_bystringnullableThe user id of the person who connected it. Null when that is not known.
connected_by_emailstringnullableThat person's email. Null when that is not known.
new_toolsarray of stringNames of tools added to the catalog in the last 30 days, after this connection was made. They are on in the root selection automatically.
upgradeobjectnullableWhat a reconnect would unlock. Null when it would unlock nothing.
ShowHide 2 fields
missing_scopesarray of stringOAuth scopes the connector now asks for and this connection was never granted.
locked_toolsarray of stringTools that will not run until the connection is reconnected with those scopes.
connect_urlstringnullableThe live connect link while status is pending. Null once connected, expired or revoked.
expires_atstringnullableWhen the connect link stops working, as an ISO 8601 timestamp. Null for a link that never expires.
created_atstringWhen the recipient's connect link was first made, as an ISO 8601 timestamp.
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.