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

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

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

  console.log(connection.account_id);
}

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

Body

application/json

Response

200 - application/json
OK

The response is of type object.