POST
/
sandbox
/
connections
JavaScript
import Finch from '@tryfinch/finch-api';

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

const connection = await client.sandbox.connections.create({ provider_id: 'provider_id' });

console.log(connection.account_id);
{
  "connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "authentication_type": "credential",
  "products": [
    "<string>"
  ],
  "access_token": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "token_type": "<string>"
}

Authorizations

Authorization
string
header
required

Please use base64 encoded client_id:client_secret

Body

application/json

Response

200 - application/json

OK

The response is of type object.