---
title: "Generate TOTP key"
method: POST
path: "/accounts/generate-totp-key"
tags: ["Multi-Factor Authentication"]
---

# Generate TOTP key

`POST /accounts/generate-totp-key`

Generates a TOTP key for multi-factor authentication

## Response `200`

TOTP key generated successfully

- object
  - `data` object, required
    - `otpauth_url` string — OTP Auth URL for QR code generation
    - `secret` string — TOTP secret key

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/quivaworks/apis/quiva-ai-gateway.md) · [All operations](https://skmtc.net/quivaworks/apis/quiva-ai-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quivaworks/quiva-ai-gateway/revisions/771d118bd4d1/schema)
