POST
/
connect
/
sessions
/
reauthenticate
JavaScript
import Finch from '@tryfinch/finch-api';

const client = new Finch({
  clientId: '4ab15e51-11ad-49f4-acae-f343b7794375',
  clientSecret: 'My Client Secret',
});

const response = await client.connect.sessions.reauthenticate({ connection_id: 'connection_id' });

console.log(response.session_id);
{
  "session_id": "550e8400-e29b-41d4-a716-446655440000",
  "connect_url": "https://connect.tryfinch.com/authorize?session=550e8400-e29b-41d4-a716-446655440000"
}
NOTE: The connect session uses Basic Auth; in the sample request above use client_id as the username and client_secret as a password. For example: Authorization: Basic <base64 encoded client_id:client_secret>

Authorizations

Authorization
string
header
required

Please use base64 encoded client_id:client_secret

Body

application/json
connection_id
string
required

The ID of the existing connection to reauthenticate

redirect_uri
string<uri> | null

The URI to redirect to after the Connect flow is completed

minutes_to_expire
integer | null

The number of minutes until the session expires (defaults to 43,200, which is 30 days)

products
enum<string>[] | null

The products to request access to (optional for reauthentication)

Response

Created

session_id
string
required

The unique identifier for the created connect session

connect_url
string<uri>
required

The Connect URL to redirect the user to for reauthentication