Skip to main content
GET
/
v1
/
ais
/
consents
/
{consentId}
/
accounts
Get Accounts for Consent
curl --request GET \
  --url https://acount-apis-staging-a8cdb2402163.herokuapp.com/v1/ais/consents/{consentId}/accounts \
  --header 'Authorization: Bearer <token>'
[
  {
    "accountId": "account_2abc123def456",
    "iban": "DK1234567890123456",
    "accountHolderName": "John Doe",
    "bankId": "ngp-inal",
    "currency": "DKK",
    "isActive": true,
    "accountDetails": {
      "accountType": "CURRENT_ACCOUNT",
      "accountFeatures": {
        "supportsReceivePayment": true,
        "supportsSendPayment": true
      }
    },
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z"
  }
]
Retrieves linked accounts for a consent.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-request-id
string

Request ID for tracking

Path Parameters

Token.io consent ID

Response

Accounts list retrieved successfully

accountId
string
Example:

"account_2abc123def456"

iban
string
Example:

"DK1234567890123456"

accountHolderName
string
Example:

"John Doe"

bankId
string
Example:

"ngp-inal"

currency
string
Example:

"DKK"

isActive
boolean
Example:

true

accountDetails
object
createdAt
string<date-time>
Example:

"2024-01-15T10:30:00Z"

updatedAt
string<date-time>
Example:

"2024-01-15T10:30:00Z"