Where a connect request stands

GEThttps://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

string (uuid)required

The pending id a POST /v1/connections answered with.

Responses

200Success
idstring

The pending id: this vendor's request on the recipient's connect link.

link_idstring

The connect link the request sits on. Each recipient address has one: revoke, resend or reset it through /v1/links.

vendorstring

The connector being connected.

statusenum

pending: nobody has consented at the vendor yet. connected: the consent landed. expired: the connect link ran out first. revoked: the connect link was revoked.

pendingconnectedexpiredrevoked
connectionobjectnullable

The connection, once status is connected. Null until then.

ShowHide 17 fields
idstring

The connection's id.

vendorstring

The connector's vendor slug, e.g. xero.

orgstringnullable

The best name for the connected account: label, else resolved_name, else handle. Null when none of them is set.

labelstringnullable

The name a person gave the account in FloConnector. Null when none is set.

resolved_namestringnullable

The vendor's own name for the account, as FloConnector resolved it. Null when the vendor gave none.

account_refstringnullable

What tells this account apart from another of the same name: an email, a shop domain or a channel id. Null when none was found.

handlestringnullable

A short, stable handle for this account among the workspace's connections to the same vendor. Null when it has none.

providerenum

Who runs the connection's calls: native (FloConnector's own integration), composio, or first_party (FloConnector's own tools, with no vendor behind them).

nativecomposiofirst_party
vendor_tenant_idstring

The vendor's own id for the connected organisation or account. Not a FloConnector id.

statusenum

active: working. needs_reauth: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. revoked: access was withdrawn.

activeneeds_reauthrevoked
platform_billing_statusenum

For 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_requiredactivependingcancelledfrozenunknown
platform_plan_handlestringnullable

The plan the account is on in the vendor's marketplace, as the vendor names it. Null when that does not apply.

connected_atstring

When it was connected, as an ISO 8601 timestamp.

connected_bystringnullable

The user id of the person who connected it. Null when that is not known.

connected_by_emailstringnullable

That person's email. Null when that is not known.

new_toolsarray of string

Names of tools added to the catalog in the last 30 days, after this connection was made. They are on in the root selection automatically.

upgradeobjectnullable

What a reconnect would unlock. Null when it would unlock nothing.

ShowHide 2 fields
missing_scopesarray of string

OAuth scopes the connector now asks for and this connection was never granted.

locked_toolsarray of string

Tools that will not run until the connection is reconnected with those scopes.

connect_urlstringnullable

The live connect link while status is pending. Null once connected, expired or revoked.

expires_atstringnullable

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

created_atstring

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

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.