These endpoints let you create and manage the consent a PSU gives you to access their account information (an AIS consent). A consent states which bank, which permissions, how much transaction history and for how long.
How Data v2 works
POST /v2/consents, stating the bank, the permissions you need and how long you need access.authentication.redirectUrl in the response.GET /v2/consents/{consentId} until the status is AUTHORIZED. Data v2 does not currently send webhooks for consent status changes.token-consent-id header on every call.Creating and reconfirming consents, and retrieving account data, require the Data v2 permission for your
TPP. Without it, those calls return 403. You can still list, view and revoke your existing consents.
Timestamps are UTC, in RFC 3339 format. Properties with no value may be omitted from a response.
To access accounts using the earlier Requests and Tokens model, see "Requests" and "Tokens".
New values may be added to enums. Handle values you don't recognise.
The POST /v2/consents endpoint enables you to request a user's consent to access their account information at their bank. Once the consent has been created, the user needs to authenticate themselves with their bank.
Requires: the Data v2 permission for your TPP.
What to do next, depending on the status in the response
PENDING_REDIRECT_AUTH, redirect the user to authentication.redirectUrl. This is the bank's authentication page.PENDING_REDIRECT_HP, redirect the user to authentication.redirectUrl. This is Token.io's Hosted Pages, where the user chooses their bank.FAILURE_REJECTED, the consent cannot proceed. See statusReason.After the user authenticates
POST /v2/consents/{consentId}/authentications with the query string you received.GET /v2/consents/{consentId} until the status is AUTHORIZED or a final status.A consent that stays pending for more than 20 minutes moves to FAILURE_EXPIRED.
The consent was created. Follow authentication according to status.
The request is invalid. error.message names the field or the problem. Fix the request and retry.
Common causes
permissions is missing or empty.onBehalfOfId is missing and it is mandatory for your TPP.refId is missing, longer than 35 characters, or you already used it for another consent.consentTermsAccepted is not a JSON true or false, for example the string "true".flowType is missing or not recognised.callbackState is longer than 255 characters or uses characters other than A-Z a-z 0-9 - _ . ~.offset, limit or a statuses value is not valid....After filter is not before its ...Before filter.psuConfirmedAt is in the future or earlier than the previous confirmation.POST /v2/consents/{consentId}/authentications was called on a consent that has ended (EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED).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.
Your credentials are valid but you may not make this call.
Causes
POST /v2/consents and
POST /v2/consents/{consentId}/confirmations require. Contact Token.io Support.POST /v2/consents only: consentTermsAccepted must be true for your TPP.POST /v2/consents only: the sub-TPP in onBehalfOfId is inactive, or you may not act for it.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.
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.
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.
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.
{- "flowType": "API_ONLY",
- "bankId": "ob-example-uk-bank",
- "permissions": [
- "READ_ACCOUNTS",
- "READ_ACCOUNT_BALANCES",
- "READ_ACCOUNT_TRANSACTIONS"
], - "transactionHistoryDays": 90,
- "expiresAt": "2027-03-31T23:59:59Z",
- "callbackState": "order-7f3a9c",
- "externalPsuReference": "customer-4821",
- "refId": "consent-ref-4821",
- "consentTermsAccepted": true
}{- "consent": {
- "id": "ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10",
- "memberId": "m:nP4w3u5y8ddrxDJkjimgSX9e4fZ:5zKtXEAq",
- "createdAt": "2026-09-29T09:15:00Z",
- "updatedAt": "2026-09-29T09:20:00Z",
- "bankId": "ob-example-uk-bank",
- "permissions": [
- "READ_ACCOUNTS",
- "READ_ACCOUNT_BALANCES",
- "READ_ACCOUNT_TRANSACTIONS"
], - "transactionHistoryDays": 90,
- "expiresAt": "2027-03-31T23:59:59Z",
- "callbackState": "order-7f3a9c",
- "externalPsuReference": "customer-4821",
- "refId": "consent-ref-4821",
- "flowType": "API_ONLY",
- "status": "PENDING_REDIRECT_AUTH",
}
}The GET /v2/consents endpoint enables you to retrieve the consents you created, newest first, one page at a time. To get the next page, call it again with offset set to page.nextOffset, while page.haveMore is true.
A page of consents. If nothing matches, consents is omitted.
The request is invalid. error.message names the field or the problem. Fix the request and retry.
Common causes
permissions is missing or empty.onBehalfOfId is missing and it is mandatory for your TPP.refId is missing, longer than 35 characters, or you already used it for another consent.consentTermsAccepted is not a JSON true or false, for example the string "true".flowType is missing or not recognised.callbackState is longer than 255 characters or uses characters other than A-Z a-z 0-9 - _ . ~.offset, limit or a statuses value is not valid....After filter is not before its ...Before filter.psuConfirmedAt is in the future or earlier than the previous confirmation.POST /v2/consents/{consentId}/authentications was called on a consent that has ended (EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED).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.
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.
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.
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.
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.
{- "consents": [
- {
- "id": "ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10",
- "memberId": "m:nP4w3u5y8ddrxDJkjimgSX9e4fZ:5zKtXEAq",
- "createdAt": "2026-09-29T09:15:00Z",
- "updatedAt": "2026-09-29T09:20:00Z",
- "bankId": "ob-example-uk-bank",
- "permissions": [
- "READ_ACCOUNTS",
- "READ_ACCOUNT_BALANCES",
- "READ_ACCOUNT_TRANSACTIONS"
], - "transactionHistoryDays": 90,
- "expiresAt": "2027-03-31T23:59:59Z",
- "flowType": "API_ONLY",
- "status": "AUTHORIZED",
- "reconfirmBy": "2026-12-28T10:15:00Z"
}
], - "page": {
- "offset": "YWM6MDE5M2Y2YTItN2IxYy03YzNlLTlhMWQtNWUyZjhiNGM2ZDEw",
- "limit": 50
}
}The GET /v2/consents/{consentId} endpoint enables you to retrieve one consent, to check whether the user has finished authenticating and whether the consent can still be used.
What to do next, depending on the status in the response
PENDING, PENDING_REDIRECT_AUTH or PENDING_REDIRECT_HP, the user has not finished. Call this endpoint again, or redirect the user to authentication.redirectUrl if you have not already.AUTHORIZED, you can retrieve account data. If reconfirmBy is in the past, first call POST /v2/consents/{consentId}/confirmations.EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED, the consent has ended. Create a new consent.The consent.
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.
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.
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.
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.
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.
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.
{- "consent": {
- "id": "ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10",
- "memberId": "m:nP4w3u5y8ddrxDJkjimgSX9e4fZ:5zKtXEAq",
- "createdAt": "2026-09-29T09:15:00Z",
- "updatedAt": "2026-09-29T09:20:00Z",
- "bankId": "ob-example-uk-bank",
- "permissions": [
- "READ_ACCOUNTS"
], - "flowType": "API_ONLY",
- "status": "REVOKED",
- "statusReason": "TPP"
}
}The DELETE /v2/consents/{consentId} endpoint enables you to revoke an AUTHORIZED consent (it becomes REVOKED) or cancel a pending one (it becomes FAILURE_CANCELLED). For any other status, the consent is returned unchanged. Requests that use a revoked consent return 403. You can revoke consents even if your TPP no longer has the Data v2 permission.
The consent after the call.
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.
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.
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.
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.
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.
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.
{- "consent": {
- "id": "ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10",
- "memberId": "m:nP4w3u5y8ddrxDJkjimgSX9e4fZ:5zKtXEAq",
- "createdAt": "2026-09-29T09:15:00Z",
- "updatedAt": "2026-09-29T09:20:00Z",
- "bankId": "ob-example-uk-bank",
- "permissions": [
- "READ_ACCOUNTS"
], - "flowType": "API_ONLY",
- "status": "REVOKED",
- "statusReason": "TPP"
}
}The POST /v2/consents/{consentId}/confirmations endpoint enables you to record that the user has reconfirmed they still want you to access their accounts, and to set a new reconfirmBy.
Requires: the Data v2 permission for your TPP, and an AUTHORIZED consent that has reconfirmBy. Ask the user first, then send the time they confirmed as psuConfirmedAt (not in the future, not before the previous confirmation). If the response has no reconfirmBy, no further reconfirmation is needed.
Reconfirmation (UK). UK banks commonly require the PSU to reconfirm their consent about every 90 days. The period depends on the bank, so use reconfirmBy rather than a fixed number of days.
The consent with its new reconfirmBy, if reconfirmation is still required.
The request is invalid. error.message names the field or the problem. Fix the request and retry.
Common causes
permissions is missing or empty.onBehalfOfId is missing and it is mandatory for your TPP.refId is missing, longer than 35 characters, or you already used it for another consent.consentTermsAccepted is not a JSON true or false, for example the string "true".flowType is missing or not recognised.callbackState is longer than 255 characters or uses characters other than A-Z a-z 0-9 - _ . ~.offset, limit or a statuses value is not valid....After filter is not before its ...Before filter.psuConfirmedAt is in the future or earlier than the previous confirmation.POST /v2/consents/{consentId}/authentications was called on a consent that has ended (EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED).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.
Your credentials are valid but you may not make this call.
Causes
POST /v2/consents and
POST /v2/consents/{consentId}/confirmations require. Contact Token.io Support.POST /v2/consents only: consentTermsAccepted must be true for your TPP.POST /v2/consents only: the sub-TPP in onBehalfOfId is inactive, or you may not act for it.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.
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.
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.
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.
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.
{- "psuConfirmedAt": "2026-09-29T09:30:00Z"
}{- "consent": {
- "id": "ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10",
- "memberId": "m:nP4w3u5y8ddrxDJkjimgSX9e4fZ:5zKtXEAq",
- "createdAt": "2026-09-29T09:15:00Z",
- "updatedAt": "2026-09-29T09:20:00Z",
- "bankId": "ob-example-uk-bank",
- "permissions": [
- "READ_ACCOUNTS",
- "READ_ACCOUNT_BALANCES"
], - "expiresAt": "2027-03-31T23:59:59Z",
- "flowType": "API_ONLY",
- "status": "AUTHORIZED",
- "reconfirmBy": "2026-12-28T09:30:00Z"
}
}The POST /v2/consents/{consentId}/authentications endpoint enables you to complete a consent's authentication when your integration receives the bank's callback directly. Send the query string the bank added to your callback URL in query, exactly as received. It is not needed if Token.io handles the callback.
Authentication can complete even if your TPP no longer has the Data v2 permission, but you can't retrieve data with the consent until the permission is added back.
What to do next, depending on the response
AUTHORIZED, the user's accounts are linked and you can retrieve data.400 and the consent is EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED, the consent has ended and cannot be authenticated. Create a new consent.401, the bank rejected the authentication and the consent is FAILURE_REJECTED.409, this authentication was already confirmed. Call GET /v2/consents/{consentId}.The consent after authentication was confirmed.
The request is invalid. error.message names the field or the problem. Fix the request and retry.
Common causes
permissions is missing or empty.onBehalfOfId is missing and it is mandatory for your TPP.refId is missing, longer than 35 characters, or you already used it for another consent.consentTermsAccepted is not a JSON true or false, for example the string "true".flowType is missing or not recognised.callbackState is longer than 255 characters or uses characters other than A-Z a-z 0-9 - _ . ~.offset, limit or a statuses value is not valid....After filter is not before its ...Before filter.psuConfirmedAt is in the future or earlier than the previous confirmation.POST /v2/consents/{consentId}/authentications was called on a consent that has ended (EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED).To tell the two cases apart, call GET /v2/consents/{consentId}:
FAILURE_REJECTED, the bank rejected the PSU's authentication. statusReason usually
holds the bank's error text. Do not retry this call. Create a new consent if the PSU wants to try again.Invalid credentials and the consent is unchanged, your credentials are invalid. Fix the
Authorization header and retry.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.
The authentication for this consent was already confirmed. Do not repeat the call; poll GET /v2/consents/{consentId} for the outcome.
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.
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.
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.
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.
{- "query": "code=aBcD1234&state=order-7f3a9c"
}{- "consent": {
- "id": "ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10",
- "memberId": "m:nP4w3u5y8ddrxDJkjimgSX9e4fZ:5zKtXEAq",
- "createdAt": "2026-09-29T09:15:00Z",
- "updatedAt": "2026-09-29T09:20:00Z",
- "bankId": "ob-example-uk-bank",
- "permissions": [
- "READ_ACCOUNTS",
- "READ_ACCOUNT_BALANCES"
], - "expiresAt": "2027-03-31T23:59:59Z",
- "callbackState": "order-7f3a9c",
- "flowType": "API_ONLY",
- "status": "AUTHORIZED"
}
}