Skip to main content
POST
/
clients
/
{client_id}
/
connections
Start a new bank connection
curl --request POST \
  --url https://api-sandbox.ledgersyncappv2.com/v3/clients/{client_id}/connections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "institution_id": "<string>",
  "redirect_url": "<string>",
  "credentials": {}
}
'
{
  "operation_id": "op_01HXYZ8A6N7K2W9PQ4T5Z3V6E0",
  "status": "queued",
  "poll_url": "https://api-sandbox.ledgersyncappv2.com/v3/operations/op_01HXYZ8A6N7K2W9PQ4T5Z3V6E0",
  "estimated_seconds": 123
}

Authorizations

Authorization
string
header
required

Pass your secret key in the Authorization header as a Bearer token: Authorization: Bearer sk_test_... (sandbox) or Bearer sk_live_... (production).

Keys are created in the developer portal and the plaintext secret is shown exactly once at creation. Treat them like passwords — never embed them in mobile apps or front-end code.

Headers

Idempotency-Key
string

Safe-retry key for POSTs. Send any unique string per logical request (a UUIDv4 is great). If the network drops and you retry with the same Idempotency-Key within 24 hours, you get the exact same response back instead of creating a duplicate.

Cached responses include failures (4xx and 5xx) too. If a call failed because of a bad input and you want to try again with the corrected input, use a fresh key — otherwise you'll keep getting the cached failure.

Maximum string length: 255
Example:

"6f1a8c50-3e9c-4d4a-b1f5-2c5b9a2f7d11"

Path Parameters

client_id
string
required

Body

application/json

Source-hiding initiate-connection shape. The integrator passes only institution_id (a v3 catalog id from GET /v3/institutions); LedgerSync's router picks the underlying source. No source field.

institution_id
string
required

A v3 catalog id (e.g., ins_01HZX9CHASE) from GET /v3/institutions.

redirect_url
string<uri> | null

URL the widget redirects to on completion.

credentials
object | null
deprecated

Ignored. FDE connects via a LedgerSync-hosted page, so raw bank credentials are never accepted over the API. Retained only so a body that still carries it is not rejected.

Response

The request was accepted but the underlying work runs asynchronously. Use the returned operation_id to poll GET /operations/{operation_id} or just wait for the matching webhook event.

Returned with 202 Accepted for async operations.

operation_id
string
required
Example:

"op_01HXYZ8A6N7K2W9PQ4T5Z3V6E0"

status
enum<string>
required
Available options:
queued
poll_url
string<uri>
required
Example:

"https://api-sandbox.ledgersyncappv2.com/v3/operations/op_01HXYZ8A6N7K2W9PQ4T5Z3V6E0"

estimated_seconds
integer

Rough ETA for completion. Best-effort.