---
title: "Confirm 2FA enrolment for the authenticated user"
method: POST
path: "/user/confirmed-two-factor-authentication"
tags: ["Users"]
---

# Confirm 2FA enrolment for the authenticated user

`POST /user/confirmed-two-factor-authentication`

Completes the two-factor-authentication enrolment flow by
submitting the six-digit code from the user's authenticator app.
Once confirmed, 2FA is active for subsequent logins.

## Request body

- object
  - `code` string, required — The 2FA code from the user's authenticator app.

## Response `200`

2FA was successfully confirmed.

- object, nullable — An empty JSON response.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `422` — The request didn't pass validation

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
