Connect integration
Returns a link that a person opens to connect this integration to the company. The API
cannot connect a provider by itself: the provider requires the account holder to sign
in and approve access in a browser. This endpoint starts that flow and hands you the
link. Only integrations with a connection_methods entry whose connect_via is api in
GET /integrations are supported; any other returns 400 integration_not_connectable.
What to do with the link
- Show
urlto the user, or open it in their browser with their permission. - They must open it in a browser where they are signed in to Finta as the user who started the request. The connection is rejected if a different Finta user completes it. Plaid banks are the exception; see below.
- They approve access on the provider’s page. Do not fill in, click through, or otherwise automate that page. The approval has to come from the person.
- Poll
GET /integrations/{key}/connectuntil itsstatusiscomplete,failed, orexpired.
Plaid banks
Banks Finta connects through Plaid (chase, svb, arc, citi, boa and
american_express) return a Plaid Hosted Link page as url, valid for 30 minutes.
The person picks their bank and signs in to it on Plaid’s page; no Finta sign-in is
needed, so anyone with the link can connect a bank to this company until it expires.
Only share it with the user. When they finish, Plaid shows a Finta page asking them to
return to you at /integrations/plaid/connected. This public, read-only completion
page appears on exit too and does not confirm success; check the connect request.
Plaid tells Finta how the session ended, usually within seconds. Temporary provider
or database errors retry automatically while the request remains authorizing;
keep checking that request rather than starting another connection. A real refusal
(such as choosing a different bank) ends it as failed. Retried completion resumes
the saved bank connection and queues its initial import once, including onboarding.
Web and API completions for the same bank are serialized to prevent duplicates.
intent is always connect: a Plaid bank that is already connected returns 409
integration_already_connected, even when its status is requires_reconnect, because
reconnecting it is only available in the Finta web app.
One request at a time
A company has at most one open request per integration. Calling this endpoint again
returns it with 200, so retries are safe. After it fails or expires, the next call
starts a new one with 201. While another user holds the open request, this returns
409 connect_link_in_progress.
During onboarding
A company still onboarding can connect only the banks it selected once Finta has approved
it (GET /onboarding status connect_banks or syncing). Before approval, while the
questionnaire is unfinished, a call is required, or the company isn’t eligible, this
returns 403 onboarding_incomplete: finish onboarding first with GET /onboarding and
PATCH /onboarding. A bank connected before approval would sync outside onboarding, and
onboarding’s first sync would never start.
Authorizations
Response
The company's open connection request for this integration was returned again.
pending until the provider sends the user back (for a Plaid bank, until Plaid reports that the session ended), then authorizing while Finta finishes the connection, then complete or failed. expired when nobody finished the link before expires_at. A request already authorizing when expires_at passes stays authorizing while Finta finishes it. For a Plaid bank, a request can still turn complete after expires_at when the user finished in Plaid just before it and Plaid reported it late, or after failing with access_denied when the user reopens the same link and connects.
pending, authorizing, complete, failed, expired "pending"
The provider's authorization page. A person opens it in a browser signed in to Finta as the user who started the request. Single use. For a Plaid bank it is a Plaid Hosted Link page instead, which needs no Finta sign-in: anyone with it can connect a bank to the company until expires_at. null unless status is pending.
"https://oauth2.mercury.com/oauth2/auth?client_id=example&redirect_uri=https%3A%2F%2Fapp.finta.com%2Fintegrations%2Fmercury%2Fcallback&response_type=code&scope=offline_access+read&state=example"
Why a failed request failed; null for every other status. access_denied: the user declined at the provider, or left Plaid without connecting a bank. provider_admin_required: the provider account that approved is not an administrator. provider_error: the provider returned an error or no authorization code. connection_failed: Finta could not finish the connection, for example because the bank picked in Plaid is not the one requested.
access_denied, provider_admin_required, provider_error, connection_failed