We've launched a new version of our Dev Docs and API Reference! View here →

Accounts v2

These endpoints let you retrieve the accounts, balances and transactions covered by an AUTHORIZED consent. Send the consent ID in the token-consent-id header on every call. Money amounts are decimal strings with a currency code.

Account parties. To get parties on accounts, include READ_ACCOUNT_PARTIES and READ_ACCOUNTS in the consent. parties is omitted without the permission, or if the bank does not provide parties. Party names are personal data.

New values may be added to enums. Handle values you don't recognise.

Get accounts

The GET /v2/accounts endpoint enables you to retrieve the accounts linked to a consent, with each account's details from the bank.

Requires: the Data v2 permission for your TPP, and an AUTHORIZED consent with the READ_ACCOUNTS permission, sent in the token-consent-id header. parties also needs READ_ACCOUNT_PARTIES.

If the bank is unavailable (503) or rate-limiting (429), no partial list is returned; try again later.

SecurityBearer
Request
header Parameters
token-consent-id
required
string

The ID of the AUTHORIZED consent that gives you access to the data. A missing or empty header returns 400. Token.io checks that the consent belongs to you, is usable and has the permission the endpoint needs.

Example: ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10
token-customer-ip-address
string

The IP address of the PSU's device, when the PSU is present and triggered the request. Token.io forwards it to banks that use it to tell PSU-initiated requests from background ones.

Example: 203.0.113.25
request-timeout
integer <int64> >= 1

How long, in whole seconds, Token.io waits for the request to complete. If the time runs out the call returns 504. It must be a whole number; anything else is not supported. When omitted, Token.io's default applies.

Example: 30
Responses
200

The accounts. Empty if the consent has no linked accounts.

400

The request is invalid. Fix the request and retry.

Common causes

  • The token-consent-id header is missing or empty.
  • startDate is later than endDate.
  • The bank does not support filtering transactions by date.
  • limit is negative.
401

Your credentials are missing or invalid: a malformed Basic key, a wrong secret, an expired or badly signed JWT, a JWT without exp or with an exp more than 1 hour ahead, or an unsupported Authorization scheme. Fix the Authorization header and retry.

403

The consent in token-consent-id does not allow this call. The reason after PERMISSION_DENIED: tells you what to do:

Reason What to do
ACCESS_DENIED Your TPP does not have the Data v2 permission, or the bank no longer supports account information. Check the message, then contact Token.io Support.
RECONFIRMATION_REQUIRED Ask the PSU to reconfirm, call POST /v2/consents/{consentId}/confirmations, then retry.
INVALID_CONSENT_STATE The consent is not AUTHORIZED. Check it with GET /v2/consents/{consentId}.
INSUFFICIENT_PERMISSIONS The consent lacks the permission this endpoint needs. Create a consent that includes it.
TRANSACTION_HISTORY_LIMIT_EXCEEDED Request a date range within the consent's transactionHistoryDays.
CONSENT_EXPIRED, CONSENT_REVOKED Create a new consent.

New reasons may be added. If the PSU's access at the bank has ended permanently, the message contains the bank's error instead of one of these reasons. The PSU must then authenticate again with a new consent.

404

The consent, account or balance was not found. The same status is returned when the ID exists but belongs to another TPP, when an ID is not valid, and when the account is not linked to the consent, so check the IDs you send. For account calls, the message may contain the bank's error text, which may change. POST /v2/consents returns this if onBehalfOfId is not one of your sub-TPPs.

429

The request could not be handled now. Either the bank's access limit for this consent or account was reached (tokenExternalError is true), or Token.io is temporarily busy. Wait and retry with backoff. The response has no Retry-After header.

500

An unexpected error occurred at Token.io, or an external provider returned an error. If the token-external-error header is true, the bank or provider caused it. Retry later, and contact support with the tokenTraceId if it continues.

503

The bank or Token.io is temporarily unavailable. Retry with backoff. A temporarily unavailable bank can also return 500 or 504 with the same message. tokenExternalError is true when the bank caused the error.

504

The request took longer than the allowed time, either your request-timeout or Token.io's default. The bank may still be processing; retry the read.

get/v2/accounts
Request samples
Response samples
application/json
{
  • "accounts": [
    ]
}

Get an account

The GET /v2/accounts/{accountId} endpoint enables you to retrieve one account linked to a consent.

Requires: the Data v2 permission for your TPP, and an AUTHORIZED consent with the READ_ACCOUNTS permission, sent in the token-consent-id header. parties also needs READ_ACCOUNT_PARTIES.

SecurityBearer
Request
path Parameters
accountId
required
string

The ID of the account, as returned in id by GET /v2/accounts. This is Token.io's ID, not the bank's account number. An ID that is not linked to the consent returns 404.

Example: a:0193f6a2-8c2d-7d4f-8b2e-6f3a9c5d7e21
header Parameters
token-consent-id
required
string

The ID of the AUTHORIZED consent that gives you access to the data. A missing or empty header returns 400. Token.io checks that the consent belongs to you, is usable and has the permission the endpoint needs.

Example: ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10
token-customer-ip-address
string

The IP address of the PSU's device, when the PSU is present and triggered the request. Token.io forwards it to banks that use it to tell PSU-initiated requests from background ones.

Example: 203.0.113.25
request-timeout
integer <int64> >= 1

How long, in whole seconds, Token.io waits for the request to complete. If the time runs out the call returns 504. It must be a whole number; anything else is not supported. When omitted, Token.io's default applies.

Example: 30
Responses
200

The account.

400

The request is invalid. Fix the request and retry.

Common causes

  • The token-consent-id header is missing or empty.
  • startDate is later than endDate.
  • The bank does not support filtering transactions by date.
  • limit is negative.
401

Your credentials are missing or invalid: a malformed Basic key, a wrong secret, an expired or badly signed JWT, a JWT without exp or with an exp more than 1 hour ahead, or an unsupported Authorization scheme. Fix the Authorization header and retry.

403

The consent in token-consent-id does not allow this call. The reason after PERMISSION_DENIED: tells you what to do:

Reason What to do
ACCESS_DENIED Your TPP does not have the Data v2 permission, or the bank no longer supports account information. Check the message, then contact Token.io Support.
RECONFIRMATION_REQUIRED Ask the PSU to reconfirm, call POST /v2/consents/{consentId}/confirmations, then retry.
INVALID_CONSENT_STATE The consent is not AUTHORIZED. Check it with GET /v2/consents/{consentId}.
INSUFFICIENT_PERMISSIONS The consent lacks the permission this endpoint needs. Create a consent that includes it.
TRANSACTION_HISTORY_LIMIT_EXCEEDED Request a date range within the consent's transactionHistoryDays.
CONSENT_EXPIRED, CONSENT_REVOKED Create a new consent.

New reasons may be added. If the PSU's access at the bank has ended permanently, the message contains the bank's error instead of one of these reasons. The PSU must then authenticate again with a new consent.

404

The consent, account or balance was not found. The same status is returned when the ID exists but belongs to another TPP, when an ID is not valid, and when the account is not linked to the consent, so check the IDs you send. For account calls, the message may contain the bank's error text, which may change. POST /v2/consents returns this if onBehalfOfId is not one of your sub-TPPs.

429

The request could not be handled now. Either the bank's access limit for this consent or account was reached (tokenExternalError is true), or Token.io is temporarily busy. Wait and retry with backoff. The response has no Retry-After header.

500

An unexpected error occurred at Token.io, or an external provider returned an error. If the token-external-error header is true, the bank or provider caused it. Retry later, and contact support with the tokenTraceId if it continues.

503

The bank or Token.io is temporarily unavailable. Retry with backoff. A temporarily unavailable bank can also return 500 or 504 with the same message. tokenExternalError is true when the bank caused the error.

504

The request took longer than the allowed time, either your request-timeout or Token.io's default. The bank may still be processing; retry the read.

get/v2/accounts/{accountId}
Request samples
Response samples
application/json
{
  • "account": {
    }
}

Get account balances

The GET /v2/accounts/{accountId}/balances endpoint enables you to retrieve the balances of one account.

Requires: the Data v2 permission for your TPP, and an AUTHORIZED consent with the READ_ACCOUNT_BALANCES permission, sent in the token-consent-id header.

SecurityBearer
Request
path Parameters
accountId
required
string

The ID of the account, as returned in id by GET /v2/accounts. This is Token.io's ID, not the bank's account number. An ID that is not linked to the consent returns 404.

Example: a:0193f6a2-8c2d-7d4f-8b2e-6f3a9c5d7e21
header Parameters
token-consent-id
required
string

The ID of the AUTHORIZED consent that gives you access to the data. A missing or empty header returns 400. Token.io checks that the consent belongs to you, is usable and has the permission the endpoint needs.

Example: ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10
token-customer-ip-address
string

The IP address of the PSU's device, when the PSU is present and triggered the request. Token.io forwards it to banks that use it to tell PSU-initiated requests from background ones.

Example: 203.0.113.25
request-timeout
integer <int64> >= 1

How long, in whole seconds, Token.io waits for the request to complete. If the time runs out the call returns 504. It must be a whole number; anything else is not supported. When omitted, Token.io's default applies.

Example: 30
Responses
200

The balances.

400

The request is invalid. Fix the request and retry.

Common causes

  • The token-consent-id header is missing or empty.
  • startDate is later than endDate.
  • The bank does not support filtering transactions by date.
  • limit is negative.
401

Your credentials are missing or invalid: a malformed Basic key, a wrong secret, an expired or badly signed JWT, a JWT without exp or with an exp more than 1 hour ahead, or an unsupported Authorization scheme. Fix the Authorization header and retry.

403

The consent in token-consent-id does not allow this call. The reason after PERMISSION_DENIED: tells you what to do:

Reason What to do
ACCESS_DENIED Your TPP does not have the Data v2 permission, or the bank no longer supports account information. Check the message, then contact Token.io Support.
RECONFIRMATION_REQUIRED Ask the PSU to reconfirm, call POST /v2/consents/{consentId}/confirmations, then retry.
INVALID_CONSENT_STATE The consent is not AUTHORIZED. Check it with GET /v2/consents/{consentId}.
INSUFFICIENT_PERMISSIONS The consent lacks the permission this endpoint needs. Create a consent that includes it.
TRANSACTION_HISTORY_LIMIT_EXCEEDED Request a date range within the consent's transactionHistoryDays.
CONSENT_EXPIRED, CONSENT_REVOKED Create a new consent.

New reasons may be added. If the PSU's access at the bank has ended permanently, the message contains the bank's error instead of one of these reasons. The PSU must then authenticate again with a new consent.

404

The consent, account or balance was not found. The same status is returned when the ID exists but belongs to another TPP, when an ID is not valid, and when the account is not linked to the consent, so check the IDs you send. For account calls, the message may contain the bank's error text, which may change. POST /v2/consents returns this if onBehalfOfId is not one of your sub-TPPs.

429

The request could not be handled now. Either the bank's access limit for this consent or account was reached (tokenExternalError is true), or Token.io is temporarily busy. Wait and retry with backoff. The response has no Retry-After header.

500

An unexpected error occurred at Token.io, or an external provider returned an error. If the token-external-error header is true, the bank or provider caused it. Retry later, and contact support with the tokenTraceId if it continues.

503

The bank or Token.io is temporarily unavailable. Retry with backoff. A temporarily unavailable bank can also return 500 or 504 with the same message. tokenExternalError is true when the bank caused the error.

504

The request took longer than the allowed time, either your request-timeout or Token.io's default. The bank may still be processing; retry the read.

get/v2/accounts/{accountId}/balances
Request samples
Response samples
application/json
{
  • "balances": {
    }
}

Get account transactions

The GET /v2/accounts/{accountId}/transactions endpoint enables you to retrieve the transactions of one account, one page at a time.

Requires: the Data v2 permission for your TPP, and an AUTHORIZED consent with the READ_ACCOUNT_TRANSACTIONS permission, sent in the token-consent-id header.

  • The bank filters startDate and endDate on the calendar date only. A date older than the consent's transactionHistoryDays returns 403. An inverted range, or a bank that does not support date filtering, returns 400.
  • To get the next page, call the endpoint again with offset set to page.nextOffset, while page.haveMore is true.
  • Amounts are signed: debits are negative, credits are positive.
SecurityBearer
Request
path Parameters
accountId
required
string

The ID of the account, as returned in id by GET /v2/accounts. This is Token.io's ID, not the bank's account number. An ID that is not linked to the consent returns 404.

Example: a:0193f6a2-8c2d-7d4f-8b2e-6f3a9c5d7e21
query Parameters
startDate
string <date-time>

Return transactions from this date (calendar date of the timestamp, inclusive at the bank). Must not be later than endDate. If you omit it and the consent has transactionHistoryDays, Token.io uses the date that many days before now.

Example: startDate=2026-08-01T00:00:00Z
endDate
string <date-time>

Return transactions up to this date (calendar date of the timestamp, inclusive at the bank).

Example: endDate=2026-09-29T00:00:00Z
limit
integer <int32> >= 0
Default: 200

Maximum number of transactions to return. 0 or omitted returns up to 200; larger values are reduced to 200. A negative value returns 400.

Example: limit=100
offset
string

The page.nextOffset value from the previous response.

Example: offset=cGFnZTI
header Parameters
token-consent-id
required
string

The ID of the AUTHORIZED consent that gives you access to the data. A missing or empty header returns 400. Token.io checks that the consent belongs to you, is usable and has the permission the endpoint needs.

Example: ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10
token-customer-ip-address
string

The IP address of the PSU's device, when the PSU is present and triggered the request. Token.io forwards it to banks that use it to tell PSU-initiated requests from background ones.

Example: 203.0.113.25
request-timeout
integer <int64> >= 1

How long, in whole seconds, Token.io waits for the request to complete. If the time runs out the call returns 504. It must be a whole number; anything else is not supported. When omitted, Token.io's default applies.

Example: 30
Responses
200

A page of transactions.

400

The request is invalid. Fix the request and retry.

Common causes

  • The token-consent-id header is missing or empty.
  • startDate is later than endDate.
  • The bank does not support filtering transactions by date.
  • limit is negative.
401

Your credentials are missing or invalid: a malformed Basic key, a wrong secret, an expired or badly signed JWT, a JWT without exp or with an exp more than 1 hour ahead, or an unsupported Authorization scheme. Fix the Authorization header and retry.

403

The consent in token-consent-id does not allow this call. The reason after PERMISSION_DENIED: tells you what to do:

Reason What to do
ACCESS_DENIED Your TPP does not have the Data v2 permission, or the bank no longer supports account information. Check the message, then contact Token.io Support.
RECONFIRMATION_REQUIRED Ask the PSU to reconfirm, call POST /v2/consents/{consentId}/confirmations, then retry.
INVALID_CONSENT_STATE The consent is not AUTHORIZED. Check it with GET /v2/consents/{consentId}.
INSUFFICIENT_PERMISSIONS The consent lacks the permission this endpoint needs. Create a consent that includes it.
TRANSACTION_HISTORY_LIMIT_EXCEEDED Request a date range within the consent's transactionHistoryDays.
CONSENT_EXPIRED, CONSENT_REVOKED Create a new consent.

New reasons may be added. If the PSU's access at the bank has ended permanently, the message contains the bank's error instead of one of these reasons. The PSU must then authenticate again with a new consent.

404

The consent, account or balance was not found. The same status is returned when the ID exists but belongs to another TPP, when an ID is not valid, and when the account is not linked to the consent, so check the IDs you send. For account calls, the message may contain the bank's error text, which may change. POST /v2/consents returns this if onBehalfOfId is not one of your sub-TPPs.

429

The request could not be handled now. Either the bank's access limit for this consent or account was reached (tokenExternalError is true), or Token.io is temporarily busy. Wait and retry with backoff. The response has no Retry-After header.

500

An unexpected error occurred at Token.io, or an external provider returned an error. If the token-external-error header is true, the bank or provider caused it. Retry later, and contact support with the tokenTraceId if it continues.

503

The bank or Token.io is temporarily unavailable. Retry with backoff. A temporarily unavailable bank can also return 500 or 504 with the same message. tokenExternalError is true when the bank caused the error.

504

The request took longer than the allowed time, either your request-timeout or Token.io's default. The bank may still be processing; retry the read.

get/v2/accounts/{accountId}/transactions
Request samples
Response samples
application/json
{
  • "transactions": [
    ],
  • "page": {
    }
}