---
updatedAt: 2026-05-27T09:42:20.000Z
agentTools:
  projectIndex: https://docs.truelayer.com/llms.txt
---

# Generate a reauthentication link

Generate a link to initiate a reauthentication flow. The reauthentication flow provides a simple path for the user to follow to reconnect their account, providing a shorter user journey compared to setting up their account for the first time.

**UK only**: Reauthentication is currently only supported for UK providers. Ireland and other European providers are not supported.

Most European banks require that end-users who are sharing account details grant permission for data sharing every 90 days.

For these banks, access to your user’s bank accounts will no longer be available 90 days after they initially connect their account. When this happens, the TrueLayer `POST /connect/token` endpoint will return a 400 `invalid_grant` error when you try to refresh your tokens, and if you try to fetch data using an access token TrueLayer will return a 403 `access_denied` error.

To initiate the reauthentication flow, call the reauthentication endpoint with a refresh token for the user you would like to re-authenticate. We will return a link to the bank for the user to follow. You can have the user go through this flow either before or after their original connection expires (for example, you may prefer to have users reconnect their accounts a week before the connection expires, which would reset the expiration to 90 days from the time of reauthentication).

Users can use the reauthentication flow for up to 90 days after their associated refresh token expires. (The expiration time varies based on the underlying bank but in general you will have at least 90 days after their connection has expired in which to use the reauthentication flow). After that time has elapsed, reauthentication is no longer possible and the user should go through the first-time authentication flow instead.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "version": "1.0.0",
    "title": "Authentication Server",
    "description": "The authentication server\n"
  },
  "servers": [
    {
      "url": "https://auth.truelayer-sandbox.com",
      "description": "Sandbox server"
    },
    {
      "url": "https://auth.truelayer.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/v1/reauthuri": {
      "post": {
        "tags": [
          "Auth link"
        ],
        "summary": "Generate a reauthentication link",
        "operationId": "GenerateReauthLink",
        "description": "Generate a link to initiate a reauthentication flow. The reauthentication flow provides a simple path for the user to follow to reconnect their account, providing a shorter user journey compared to setting up their account for the first time.\n\n**UK only**: Reauthentication is currently only supported for UK providers. Ireland and other European providers are not supported.\n\nMost European banks require that end-users who are sharing account details grant permission for data sharing every 90 days.\n\nFor these banks, access to your user’s bank accounts will no longer be available 90 days after they initially connect their account. When this happens, the TrueLayer `POST /connect/token` endpoint will return a 400 `invalid_grant` error when you try to refresh your tokens, and if you try to fetch data using an access token TrueLayer will return a 403 `access_denied` error.\n\nTo initiate the reauthentication flow, call the reauthentication endpoint with a refresh token for the user you would like to re-authenticate. We will return a link to the bank for the user to follow. You can have the user go through this flow either before or after their original connection expires (for example, you may prefer to have users reconnect their accounts a week before the connection expires, which would reset the expiration to 90 days from the time of reauthentication).\n\nUsers can use the reauthentication flow for up to 90 days after their associated refresh token expires. (The expiration time varies based on the underlying bank but in general you will have at least 90 days after their connection has expired in which to use the reauthentication flow). After that time has elapsed, reauthentication is no longer possible and the user should go through the first-time authentication flow instead.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReauthUriRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response returns `access_token` and optionally `refresh_token`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthUriResponse"
                },
                "examples": {
                  "reauthUriExample": {
                    "$ref": "#/components/examples/reauthUri200Response"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        },
        "security": []
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Machine-readable error category",
            "enum": [
              "access_denied",
              "invalid_request",
              "unauthorized",
              "invalid_grant",
              "unauthorized_client",
              "internal_server_error",
              "not_found"
            ]
          },
          "error_description": {
            "type": "string",
            "description": "Human-readable explanation of the error"
          },
          "error_details": {
            "type": "object",
            "description": "Arbitrary key value pairs to provide more context for certain errors",
            "properties": {
              "reason": {
                "type": "string",
                "description": "Additional human-readable explanation as to the cause of the error"
              }
            }
          }
        }
      },
      "AuthUriResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "result",
          "success"
        ],
        "properties": {
          "result": {
            "type": "string",
            "format": "uri",
            "description": "Authentication link. Direct the end user here to (re)authenticate them."
          },
          "success": {
            "type": "boolean"
          }
        }
      },
      "ReauthUriRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "response_type",
          "refresh_token",
          "redirect_uri"
        ],
        "properties": {
          "response_type": {
            "type": "string",
            "description": "Must be `\"code\"`",
            "enum": [
              "code"
            ]
          },
          "refresh_token": {
            "type": "string",
            "description": "The refresh token for the connection you want to reauthenticate"
          },
          "redirect_uri": {
            "type": "string",
            "description": "A valid redirect URI for your TrueLayer client ID (set in Console)"
          },
          "state": {
            "type": "string",
            "description": "An opaque value used by the client to maintain state between the request and callback"
          },
          "code_challenge": {
            "type": "string",
            "description": "PKCE code challenge"
          },
          "code_challenge_method": {
            "type": "string",
            "description": "Must be `\"S256\"` if `code_challenge` is supplied",
            "enum": [
              "S256"
            ]
          },
          "response_mode": {
            "type": "string",
            "description": "Must be `\"form_post\"` if provided",
            "enum": [
              "form_post"
            ]
          }
        }
      }
    },
    "examples": {
      "InternalServerError500Response": {
        "summary": "Internal server error",
        "value": {
          "error_description": "Sorry, we are experiencing technical difficulties. Please try again later.",
          "error": "internal_server_error",
          "error_details": {}
        }
      },
      "Unauthorized401Response": {
        "summary": "Unauthorized request",
        "value": {
          "error_description": "Unauthorized.",
          "error": "unauthorized",
          "error_details": {
            "reason": "Invalid token"
          }
        }
      },
      "InvalidRefreshToken401Response": {
        "summary": "Invalid refresh token",
        "value": {
          "error_description": "Invalid request",
          "error": "invalid_request",
          "error_details": {
            "reason": "Invalid refresh_token"
          }
        }
      },
      "UnauthorizedClient401Response": {
        "summary": "Unauthorized client",
        "value": {
          "error_description": "The client credentials you have entered are incorrect. Please check and try again.",
          "error": "unauthorized_client",
          "error_details": {}
        }
      },
      "reauthUri200Response": {
        "summary": "Reauthentication URI response",
        "value": {
          "result": "https://example.com",
          "success": true
        }
      }
    },
    "responses": {
      "401": {
        "description": "Unauthorized request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "401Example": {
                "$ref": "#/components/examples/Unauthorized401Response"
              },
              "401InvalidRefreshTokenExample": {
                "$ref": "#/components/examples/InvalidRefreshToken401Response"
              },
              "401UnauthorizedClientExample": {
                "$ref": "#/components/examples/UnauthorizedClient401Response"
              }
            }
          }
        }
      },
      "500": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "500Example": {
                "$ref": "#/components/examples/InternalServerError500Response"
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "shell",
      "java",
      "csharp",
      "php"
    ]
  }
}
```