---
title: "Change an account's MFA using a code, usually delivered over email."
method: POST
path: "/v2/console/authenticate/mfa"
tags: ["Console"]
---

# Change an account's MFA using a code, usually delivered over email.

`POST /v2/console/authenticate/mfa`

## Request

- Base URL: `http://127.0.0.1:7351`
- URL: `http://127.0.0.1:7351/v2/console/authenticate/mfa`
- Auth: API key in header `Authorization`

## Request body

- AuthenticateMFASetupRequest: Request to change MFA.
  - `mfa` string: MFA token.
  - `code` string: MFA code.

## Response `200`

A successful response.

- AuthenticateMFASetupResponse: Response to change MFA.
  - `recovery_codes` string[]

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2.md) - [All operations](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2/revisions/fbde2e3c5ead?raw)
