---
title: "Update MFA settings"
method: PATCH
path: "/accounts/mfa-settings"
tags: ["Multi-Factor Authentication"]
---

# Update MFA settings

`PATCH /accounts/mfa-settings`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/mfa-settings`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/mfa-settings/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates multi-factor authentication settings for a user

## Request body

- object
  - `totp_enabled` boolean: Enable or disable TOTP (Time-based One-Time Password)
  - `passkey_enabled` boolean: Enable or disable passkey authentication

## Response `200`

MFA settings updated successfully

- SuccessResponse
  - `message` string

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
