---
title: "POST /api/two-factor-auth/configuration/"
method: POST
path: "/api/two-factor-auth/configuration/"
tags: ["Auth"]
---

# POST /api/two-factor-auth/configuration/

`POST /api/two-factor-auth/configuration/`

Configures two-factor authentication for the authenticated user.

## Request body

- TwoFactorAuthTypeCreateTwoFactorAuth
  - `type` 'totp', required — * `totp` - totp
  - `provisioning_url` string, required
  - `provisioning_qr_code` string, required
  - `backup_codes` string[], required

## Response `200`

- TwoFactorAuthTypeTwoFactorAuth
  - `type` string, required
  - `is_enabled` boolean, required
  - `provisioning_url` string, required
  - `provisioning_qr_code` string, required
  - `backup_codes` string[], required

## Other responses

- `400`
- `401`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/revisions/0c490e5b0c7f/schema)
