Link Sessions

Link Sessions

Create and exchange link tokens to connect your users to their biller accounts via the Elements. A link token initializes the Connect flow, and after the user completes linking, you exchange the public token for a permanent access token.

Related guides: Link a Biller Account · Elements SDK

POST/v1/link-tokens/:public_token/exchange

Exchange the public token (received after a user completes the Connect flow) for a permanent access token. The access token is used to retrieve bills on behalf of the user.

Path parameters

public_token*stringThe public token from the Elements callback
Sample uses your_client_id · sign in to auto-fill your sandbox key
curl -X POST https://sandbox.api.billerapi.com/v1/link-tokens/sb_public_tok_6b1f0c9d3a874e21/exchange \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $BILLERAPI_API_KEY" \
  -d '{}'
Response200 OK
{
  "success": true,
  "access_token": "sb_access_tok_c7d4e91a2b6f8035",
  "biller_id": "sb_utility",
  "account_link_id": "link_abc123",
  "link_id": "link_abc123"
}
Was this page helpful?