Start an authorized connection
- Read
GET /v1/providers. Choose a product from that provider’sproducts[].id; itsresources,consent_scopesandpurposesdescribe what it authorizes. A resource such asbank_transactionis not a product ID. - Record the borrower’s valid consent. Create an unpredictable browser-session
statewith at least 32 characters. Store it server-side with the intended business and registered HTTPS return URL. - Create the connection with that consent, product IDs,
redirect_uriandstate. Save its ID before openingaction.url. - On return, validate
state, its session binding and the expectedconnection_id, and consume that state once. Return parameters areconnection_id,state, andresult(completed,cancelled, orfailed); a failed return also has a sanitizederror_code. - Retrieve the connection from your server. A browser return does not prove authorization succeeded. Wait for
activeor inspecterror_code;connection.updatedcan notify your server independently.
Renew access
For areauth_required connection, or an expired/abandoned authorization action on a pending connection, call Renew connection authorization:
POST /v1/connections/{id}/authorization with the existing connection ID. Obtain and record fresh borrower consent first when the previous consent is expired or revoked. The replacement consent must cover the same subject, products and purposes. AMLOK updates the connection’s consent reference only after successful authorization.
The connection ID, previously retrieved records and synchronization lineage remain stable. A replacement action invalidates the previous unused action. An identical idempotent retry returns the same action and original expiry. To replace an expired link intentionally, use a new key and fresh state. After the connection is active, synchronize and inspect actual coverage; authorization alone does not fill a data gap.
revoked or disconnected connections cannot be reopened. Obtain new consent and create a new connection; preserve the old records as evidence under the configured retention policy. Do not merge account identities or deduplicate cross-connection data using names alone.