Appearance
Fresh 2026
SOP: Connect an Integration with Merge Link
Procedure to let an end user authorize a third-party integration and obtain a permanent account token.
Prerequisites
- Merge API key (server-side).
- Merge Link added to your frontend.
Procedure
- Create a link token (backend). Call
POST /link-tokenwith your API key, the end user's id and email, and the categories to offer. Return thelink_tokento the frontend. - Open Merge Link (frontend). Initialize the Merge Link component with the link token. The user selects an integration and authorizes it.
- Receive the public token. On success, Merge Link returns a
public_tokento your frontend. - Exchange for an account token (backend). Call
POST /account-token/{public_token}. Store the returnedaccount_tokenagainst the user record. - Use the account token. Pass it as
X-Account-Tokenon every data request for this Linked Account.
Verification
- A new Linked Account appears in your Merge dashboard.
- A data request with the stored account token returns
200.