Links
Links are the core abstraction in the Connect Service — a lightweight intent to connect a user’s account.
What is a link?
A link represents a request to perform a specific operation on a user’s account with a specific integration. Inspired by Plaid’s link_token pattern, links are cheap to create and only spawn sessions when claimed.
Each link targets a single operation, identified by:
- integrationId — The service (e.g.,
tmobile,att) - resource — What to access (e.g.,
paymentMethod,mobileBillingStatement) - action — What to do (
readorwrite)
Lifecycle
- Pending —
POST /v1/linkscreates a link record with a claim code - Active — The client SDK calls
POST /link/claimwith the claim code, creating a session and starting the automation - Complete — The automation finishes successfully; result data is stored on the link
- Failed — The automation encountered an error; the link can be re-claimed for a new attempt
- Expired — The link expired before being claimed or completed (4-hour TTL)
Re-claiming
If a link fails, the user can try again. Each claim creates a new session — the link itself persists across attempts. Every session attempt is recorded in the link_sessions table, so failed sessions remain visible for debugging even after the link is re-claimed with a new session.
Single-use on success
Once a link completes successfully, it cannot be re-claimed. Create a new link for subsequent account connections.
Next steps
- Sessions — What happens after a link is claimed
- Create Link API — API reference