Skip to main content
POST
Connect integration

Authorizations

Authorization
string
header
required

An API key prefixed with finta_, or the access token from a Finta CLI browser login (finta login), prefixed with finta_oat_. A CLI login's access token lasts one hour and the CLI renews it itself.

Path Parameters

key
string
required

The integration's key from GET /integrations, e.g. mercury.

Response

The company's open connection request for this integration was returned again.

object
enum<string>
required
Available options:
connect_request
integration
string
required

The integration's key.

Example:

"mercury"

intent
enum<string>
required

reconnect re-authenticates an existing connection whose status is requires_reconnect. Always connect for Plaid banks.

Available options:
connect,
reconnect
status
enum<string>
required

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.

Available options:
pending,
authorizing,
complete,
failed,
expired
Example:

"pending"

url
string<uri> | null
required

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.

Example:

"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"

expires_at
integer
required

Unix timestamp (seconds) after which the link stops working.

Example:

1790170200

failure_code
enum<string> | null
required

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.

Available options:
access_denied,
provider_admin_required,
provider_error,
connection_failed