---
title: "Update or create TOTP secret for the given method ID on the given entity."
method: POST
path: "/identity/mfa/method/totp/generate"
tags: ["identity"]
---

# Update or create TOTP secret for the given method ID on the given entity.

`POST /identity/mfa/method/totp/generate`

## Request body

- IdentityMfaMethodTotpGenerateRequest
  - `method_id` string, required — The unique identifier for this MFA method.

## Response `200`

OK

---

[API](https://skmtc.net/lensesio/apis/hashicorp-vault-api.md) · [All operations](https://skmtc.net/lensesio/apis/hashicorp-vault-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lensesio/hashicorp-vault-api/versions/bd8194de0697/schema)
