---
title: "Configure two-factor authentication"
method: PUT
path: "/me/2fa"
tags: ["Users"]
---

# Configure two-factor authentication

`PUT /me/2fa`

## Request body

- TwoFactorAuthConfigureRequestBody — TwoFactorAuthConfigureRequestBody
  - `method` string, required — Two-factor authentication method being used, if any
  - `password` string, required — Current password

## Response `200`

Response

- TwoFactorAuthConfigureResponse — TwoFactorAuthConfigureResponse
  - `errors` object[] — List of errors occurred during request processing
    - `message` string, required — Printable error message
    - `more_info` string — URL to the documentation of the error
    - `status` integer, required — HTTP error status code
  - `message` string — Printable result of the request
  - `method` string, required — Two-factor authentication method being used, if any
  - `qrcode` string — QR code describing the TOTP as a base64-encoded PNG
  - `uri` string — URI describing the TOTP

---

[API](https://skmtc.net/aiven/apis/aiven-api-documentation.md) · [All operations](https://skmtc.net/aiven/apis/aiven-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aiven/aiven-api-documentation/revisions/042e78a96ad8/schema)
