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

const client = new Finch({
  accessToken: 'My Access Token',
});

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

  console.log(response.session_id);
}

main();
{
  "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>

Body

application/json

Response

201
application/json
Created

The response is of type object.