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

Consents v2

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

  1. Create a consent with POST /v2/consents, stating the bank, the permissions you need and how long you need access.
  2. Redirect the PSU to authentication.redirectUrl in the response.
  3. Call GET /v2/consents/{consentId} until the status is AUTHORIZED. Data v2 does not currently send webhooks for consent status changes.
  4. Retrieve data with the Accounts v2 endpoints, sending the consent ID in the token-consent-id header on every call.
  5. Reconfirm or revoke the consent as needed.

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.

Create a consent

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

  • If the status is PENDING_REDIRECT_AUTH, redirect the user to authentication.redirectUrl. This is the bank's authentication page.
  • If the status is PENDING_REDIRECT_HP, redirect the user to authentication.redirectUrl. This is Token.io's Hosted Pages, where the user chooses their bank.
  • If the status is FAILURE_REJECTED, the consent cannot proceed. See statusReason.

After the user authenticates

  1. If you receive the bank's callback directly, call POST /v2/consents/{consentId}/authentications with the query string you received.
  2. Call 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.

SecurityBearer
Request
Request Body schema: application/json
required
flowType
required
string (ConsentFlowType)

How the PSU is sent to authenticate. Other values return 400.

  • API_ONLY – you choose the bank (bankId required) and send the PSU to the bank yourself.
  • FULL_HOSTED_PAGES – Token.io's Hosted Pages let the PSU choose the bank and then send them to it. bankId is optional.
  • EMBEDDED_HOSTED_PAGES – you choose the bank (bankId required). Token.io's Hosted Pages collect the credentials or other input the bank needs, then send the PSU to the bank. If the bank needs only a redirect, Token.io creates the consent as API_ONLY.

The consent's flowType is the flow Token.io uses, which can differ from the value you sent.

Enum: "API_ONLY" "FULL_HOSTED_PAGES" "EMBEDDED_HOSTED_PAGES"
bankId
string

The ID of the PSU's bank, from GET /v2/banks. Required when flowType is API_ONLY or EMBEDDED_HOSTED_PAGES; optional when it is FULL_HOSTED_PAGES (the PSU then chooses). The bank must support account information.

permissions
Array of strings (Permission) non-empty unique

The permissions you need. At least one value is required.

Items Enum: "READ_ACCOUNTS" "READ_ACCOUNT_BALANCES" "READ_ACCOUNT_TRANSACTIONS" "READ_ACCOUNT_PARTIES"
transactionHistoryDays
integer <int32> >= 0

How many days of transaction history you need, counted back from the time of each request. 0 or omitted means as much as the bank allows. A negative value returns 400. The bank's maximum takes precedence; read the applied value from the response. The maximum history depends on the bank.

expiresAt
string <date-time>

When you want access to end, in RFC 3339 UTC format. Omit for the longest the bank allows. It must be in the future. The bank's maximum access duration takes precedence; read the applied value from the response.

callbackUrl
required
string <uri>

Where the PSU returns after authenticating. Required. Token.io does not check the URL's scheme; use HTTPS. If Token.io handles the bank's callback it redirects the PSU here with consent-id (and error, message, traceId on failure). If your integration receives the bank's callback directly, this is the URL the bank redirects to.

callbackState
string <= 255 characters ^[A-Za-z0-9\-_.~]*$

A value you choose, returned as callbackState on the consent, to link the PSU's return to your own records. Up to 255 characters from A-Z a-z 0-9 - _ . ~; anything else returns 400.

If your integration receives the bank's callback directly and you omit it, Token.io generates a value and returns it as callbackState, so you can tell which consent a callback belongs to. Treat it as opaque. If Token.io handles the callback, no value is generated.

onBehalfOfId
string

If you are a reseller using Token.io's licence, the ID of the sub-TPP you are acting for. The sub-TPP must be active and you must be permitted to act on its behalf. Mandatory for some TPPs. If it is mandatory for you and you do not send it, the call returns 400.

externalPsuReference
string

Your own reference for the PSU, for example your customer ID. Do not send personal data. Returned on the consent and usable as a filter on GET /v2/consents. Passed to the bank as the PSU identifier where the bank supports it.

refId
required
string <= 35 characters

Required. Your own reference for this consent. Do not send personal data. Must be unique among your consents, maximum 35 characters. If you do not send it, or you send a value you already used, the call returns 400. Returned as refId on the consent and usable as the refIds filter on GET /v2/consents.

consentTermsAccepted
boolean
Default: false

Set to true to confirm the PSU accepted the consent terms. Send a JSON true or false in the request body. null counts as omitted. Any other value, for example the string "true", returns 400. Mandatory for some TPPs. If it is mandatory for you and you do not send true, the call returns 403. Default false.

Responses
200

The consent was created. Follow authentication according to status.

400

The request is invalid. error.message names the field or the problem. Fix the request and retry.

Common causes

  • A required field is missing or malformed.
  • 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.
  • A ...After filter is not before its ...Before filter.
  • psuConfirmedAt is in the future or earlier than the previous confirmation.
  • The consent's status does not allow the call, for example reconfirming a consent that does not need it.
  • POST /v2/consents/{consentId}/authentications was called on a consent that has ended (EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED).
  • No bank has been selected for the consent yet.
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

Your credentials are valid but you may not make this call.

Causes

  • Your TPP does not have the Data v2 permission, which POST /v2/consents and POST /v2/consents/{consentId}/confirmations require. Contact Token.io Support.
  • The bank does not support account information.
  • 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.
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.

Callbacks
getPSU returns to your callback URL
post/v2/consents
Request samples
application/json
{
  • "flowType": "API_ONLY",
  • "bankId": "ob-example-uk-bank",
  • "permissions": [
    ],
  • "transactionHistoryDays": 90,
  • "expiresAt": "2027-03-31T23:59:59Z",
  • "callbackState": "order-7f3a9c",
  • "externalPsuReference": "customer-4821",
  • "refId": "consent-ref-4821",
  • "consentTermsAccepted": true
}
Response samples
application/json
{
  • "consent": {
    }
}

Get consents

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.

SecurityBearer
Request
query Parameters
limit
integer <int32> [ 0 .. 200 ]
Default: 50

Maximum number of consents to return, from 1 to 200. 0 or omitted returns 50.

Example: limit=50
offset
string

The page.nextOffset value from the previous response. An invalid value returns 400.

Example: offset=YWM6MDE5M2Y2YTItN2IxYy03YzNlLTlhMWQtNWUyZjhiNGM2ZDEw
ids
Array of strings

Only return consents with these IDs. Repeat the parameter for several IDs. IDs that are not valid consent IDs are ignored.

Example: ids=ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10
statuses
Array of strings (ConsentStatus)

Only return consents in these statuses. Repeat the parameter for several statuses. An unknown value returns 400. AUTHORIZED leaves out authorized consents whose reconfirmBy has passed, although GET /v2/consents/{consentId} returns them as AUTHORIZED. To find those, use reconfirmByBefore set to the current time.

Items Enum: "PENDING" "PENDING_REDIRECT_HP" "PENDING_REDIRECT_AUTH" "AUTHORIZED" "EXPIRED" "REVOKED" "FAILURE_REJECTED" "FAILURE_CANCELLED" "FAILURE_EXPIRED"
Example: statuses=AUTHORIZED
createdAfter
string <date-time>

Only return consents created after this time (exclusive).

Example: createdAfter=2026-09-01T00:00:00Z
createdBefore
string <date-time>

Only return consents created before this time (exclusive).

Example: createdBefore=2026-10-01T00:00:00Z
expiresAfter
string <date-time>

Only return consents that expire after this time (exclusive), including authorized consents with no expiry.

Example: expiresAfter=2026-12-01T00:00:00Z
expiresBefore
string <date-time>

Only return authorized consents that expire before this time (exclusive).

Example: expiresBefore=2027-06-01T00:00:00Z
externalPsuReference
string

Only return consents created with exactly this externalPsuReference.

Example: externalPsuReference=customer-4821
onBehalfOfId
string

Only return consents created for this sub-TPP, with this onBehalfOfId. For resellers of Token.io's licence.

Example: onBehalfOfId=m:3KdrzWYOgqWlWAAr5CNiOfSoRHqV:6aLuYFBr
refIds
Array of strings

Only return consents created with one of these refId values. Repeat the parameter for several values.

Example: refIds=consent-ref-4821
reconfirmByAfter
string <date-time>

Only return consents whose reconfirmBy is after this time (exclusive).

Example: reconfirmByAfter=2026-10-01T00:00:00Z
reconfirmByBefore
string <date-time>

Only return consents whose reconfirmBy is before this time (exclusive). Use it to find consents that need reconfirming soon.

Example: reconfirmByBefore=2026-11-01T00:00:00Z
Responses
200

A page of consents. If nothing matches, consents is omitted.

400

The request is invalid. error.message names the field or the problem. Fix the request and retry.

Common causes

  • A required field is missing or malformed.
  • 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.
  • A ...After filter is not before its ...Before filter.
  • psuConfirmedAt is in the future or earlier than the previous confirmation.
  • The consent's status does not allow the call, for example reconfirming a consent that does not need it.
  • POST /v2/consents/{consentId}/authentications was called on a consent that has ended (EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED).
  • No bank has been selected for the consent yet.
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.

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/consents
Request samples
Response samples
application/json
{
  • "consents": [
    ],
  • "page": {
    }
}

Get a consent

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

  • If the status is 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.
  • If the status is AUTHORIZED, you can retrieve account data. If reconfirmBy is in the past, first call POST /v2/consents/{consentId}/confirmations.
  • If the status is EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED, the consent has ended. Create a new consent.
SecurityBearer
Request
path Parameters
consentId
required
string

The ID of the consent, as returned in consent.id when you created it. An ID that does not exist, is not valid, or belongs to another TPP returns 404.

Example: ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10
Responses
200

The consent.

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.

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/consents/{consentId}
Request samples
Response samples
application/json
{
  • "consent": {
    }
}

Revoke a consent

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.

SecurityBearer
Request
path Parameters
consentId
required
string

The ID of the consent, as returned in consent.id when you created it. An ID that does not exist, is not valid, or belongs to another TPP returns 404.

Example: ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10
Responses
200

The consent after the call.

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.

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.

delete/v2/consents/{consentId}
Request samples
Response samples
application/json
{
  • "consent": {
    }
}

Reconfirm a consent

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.

SecurityBearer
Request
path Parameters
consentId
required
string

The ID of the consent, as returned in consent.id when you created it. An ID that does not exist, is not valid, or belongs to another TPP returns 404.

Example: ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10
Request Body schema: application/json
required
psuConfirmedAt
required
string <date-time>

When the PSU reconfirmed, in RFC 3339 UTC format. Required. Must not be in the future and must not be earlier than the previous confirmation.

Responses
200

The consent with its new reconfirmBy, if reconfirmation is still required.

400

The request is invalid. error.message names the field or the problem. Fix the request and retry.

Common causes

  • A required field is missing or malformed.
  • 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.
  • A ...After filter is not before its ...Before filter.
  • psuConfirmedAt is in the future or earlier than the previous confirmation.
  • The consent's status does not allow the call, for example reconfirming a consent that does not need it.
  • POST /v2/consents/{consentId}/authentications was called on a consent that has ended (EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED).
  • No bank has been selected for the consent yet.
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

Your credentials are valid but you may not make this call.

Causes

  • Your TPP does not have the Data v2 permission, which POST /v2/consents and POST /v2/consents/{consentId}/confirmations require. Contact Token.io Support.
  • The bank does not support account information.
  • 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.
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.

post/v2/consents/{consentId}/confirmations
Request samples
application/json
{
  • "psuConfirmedAt": "2026-09-29T09:30:00Z"
}
Response samples
application/json
{
  • "consent": {
    }
}

Confirm authentication

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

  • If the status is AUTHORIZED, the user's accounts are linked and you can retrieve data.
  • If the response is 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.
  • If the response is 401, the bank rejected the authentication and the consent is FAILURE_REJECTED.
  • If the response is 409, this authentication was already confirmed. Call GET /v2/consents/{consentId}.
SecurityBearer
Request
path Parameters
consentId
required
string

The ID of the consent, as returned in consent.id when you created it. An ID that does not exist, is not valid, or belongs to another TPP returns 404.

Example: ac:0193f6a2-7b1c-7c3e-9a1d-5e2f8b4c6d10
Request Body schema: application/json
required
query
string

The query string the bank added to your callback URL, URL-encoded, as key=value&key2=value2 (without the leading ?). Each pair must contain =. Send exactly what you received.

Responses
200

The consent after authentication was confirmed.

400

The request is invalid. error.message names the field or the problem. Fix the request and retry.

Common causes

  • A required field is missing or malformed.
  • 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.
  • A ...After filter is not before its ...Before filter.
  • psuConfirmedAt is in the future or earlier than the previous confirmation.
  • The consent's status does not allow the call, for example reconfirming a consent that does not need it.
  • POST /v2/consents/{consentId}/authentications was called on a consent that has ended (EXPIRED, REVOKED, FAILURE_REJECTED, FAILURE_EXPIRED or FAILURE_CANCELLED).
  • No bank has been selected for the consent yet.
401

To tell the two cases apart, call GET /v2/consents/{consentId}:

  • If the consent is now 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.
  • If the message is Invalid credentials and the consent is unchanged, your credentials are invalid. Fix the Authorization header and retry.
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.

409

The authentication for this consent was already confirmed. Do not repeat the call; poll GET /v2/consents/{consentId} for the outcome.

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.

post/v2/consents/{consentId}/authentications
Request samples
application/json
{
  • "query": "code=aBcD1234&state=order-7f3a9c"
}
Response samples
application/json
{
  • "consent": {
    }
}