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

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

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

## Request body

- IdentityMfaMethodTotpAdminGenerateRequest
  - `entity_id` string, required — Entity ID on which the generated secret needs to get stored.
  - `method_id` string, required — The unique identifier for this MFA method.

## Response `200`

OK

---

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