Skip to main content

Connect Account

POST /accounts

Registers a bank account by IBAN for the Magni client bound to your OAuth client and starts the bank consent. The account exists immediately but holds no data until its owner completes strong customer authentication at the returned URL. IBAN accounts at SIBS-adherent banks only.

Request​

POST /api/v1/accounts
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json
FieldRequiredDescription
bankCoderequiredThe bank's SIBS code (ASPSP)
ibanrequiredThe account IBAN; the bank is cross-checked against it
friendlyNameoptionalA label shown in the OpenBanking portal

Response — 201 Created​

FieldDescription
accountIdThe account id used by DELETE /accounts/{id} and GET /transactions?accountId=
consentIdThe bank consent created for the account
consentStatusThe consent's current status
scaRedirectUrlWhere the account owner completes SCA at their bank; send them there
psuMessageText from the bank for the account owner, when provided

Errors​

400 ValidationError / InvalidIban, 401, 403 InsufficientScope / MissingClientBinding, 429, 502 UpstreamError — shape in Error handling.

Availability

Released; callable once your OAuth client is provisioned and bound to a Magni client.