---
title: "Confirm two factor auth"
method: POST
path: "/api/v1/users/{id}/two-factor/confirm-request"
tags: ["Users"]
---

# Confirm two factor auth

`POST /api/v1/users/{id}/two-factor/confirm-request`

Confirm a two factor authentication request

## Path parameters

- `id` integer, required

## Request body

- object
  - `otpToken` string, required — OTP token generated by the app
  - `requestToken` string, required — Token to identify the two factor request

## Response `204`

successful operation

## Other responses

- `403` — invalid request token or OTP token
- `404` — user not found

---

[API](https://skmtc.net/cpy/apis/peertube.md) · [All operations](https://skmtc.net/cpy/apis/peertube/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpy/peertube/versions/efe11b159e43/schema)
