Skip to main content
POST
cURL
Required scope: connections:write Start an authorized source-connection flow. Required scope: connections:write. Return a short-lived authorization action; no provider secret in response. Once account cancellation is submitted, processing and usage deductions stop immediately. Reject new operational commands with 409 invalid_state; pending work is cancelled without another debit. Read-only reporting remains available until workspace deletion. Browser return parameters are connection_id, state and result (completed, cancelled or failed); failed returns a sanitized error_code. Verify the saved state and expected connection, then retrieve the connection server-side. The callback never proves consent or connection activation. No credentials or source data appear in return parameters. The state must be unpredictable, bound to the initiating browser session and accepted only once. Renew an expired link or reauthorization-required connection through POST /v1/connections//authorization. Accepted commands have a durable request receipt. Full response replay lasts 24 hours; afterward the same key and target return 409 idempotency_result_expired without re-execution. Different payloads return 409 idempotency_conflict. Use GET /v1/request-receipts/lookup to find the original resource. The fingerprint includes the resolved target path and intended payload; a key used on another target is rejected rather than replayed onto it. Pre-execution validation or insufficient-credit rejection creates no accepted receipt. Product scope · Processing lifecycle · Errors

Authorizations

Authorization
string
header
required

Server-to-server API key bound to exactly one workspace, institution tenant and environment. No caller-supplied workspace override is accepted. Do not use in public browser code.

Headers

X-Request-ID
string

Optional caller correlation ID; the response includes AMLOK request_id.

Idempotency-Key
string
required

Reuse for retries of the same intended command and identical payload. Retention: 24 hours.

Body

application/json
subject_id
string
required

Subject whose source will be linked.

Minimum string length: 1
provider_id
string
required

An enabled provider identifier.

Minimum string length: 1
products
string[]
required

Product IDs from this provider's products[].id in GET /v1/providers. Resource names are not interchangeable with product IDs. Reject unsupported values with 422 validation_error.

Minimum array length: 1

Active authorization.

Minimum string length: 1
redirect_uri
string<uri>
required

Registered allowed return URL.

Minimum string length: 1
Pattern: ^https://
state
string
required
Required string length: 32 - 256

Response

Start an authorized source-connection flow.

data
connection · object
required

One authorized link to a provider tenant or financial institution. Population depends on source and tenant entitlement.

meta
object
required
action
object
required