---
title: "Generate auth URI"
method: POST
path: "/authuri"
tags: ["Generate auth URI"]
---

# Generate auth URI

`POST /authuri`

## Request

- Base URL: `https://api.truelayer-sandbox.com/signup-plus`
- URL: `https://api.truelayer-sandbox.com/signup-plus/authuri`
- Auth: HTTP bearer

Generate auth URI by payment.

## Request body

- AuthRequest
  - `payment_id` string, required: ID of the payment
  - `state` string: Auth URI request state

## Response `200`

Ok

- AuthResponse
  - `auth_uri` string: Authentication link. Direct the end user here to authenticate them.

## Other responses

- `400`: Invalid Request
- `401`: Unauthorized
- `403`: Access Denied
- `422`: Invalid Payment
- `500`: Internal Server Error

---

[API](https://skmtc.dev/truelayer/apis/signup.md) - [All operations](https://skmtc.dev/truelayer/apis/signup/llms.txt) - [OpenAPI document](https://skmtc.dev/truelayer/apis/signup/revisions/daf354fea7ba?raw)
