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

# Generate auth URI

`POST /authuri`

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.net/truelayer/apis/authentication-server.md) · [All operations](https://skmtc.net/truelayer/apis/authentication-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/truelayer/authentication-server/revisions/5f6051515b2c/schema)
