### Copenhagen Truck Wash API Help

# Enable 2FA

This endpoint documentation is generated directly from `openapi.yaml`.

## Endpoint

POST /auth/2fa/enable

## Operation

Operation ID: `enable2fa`

Verify a code and enable 2FA for the authenticated user/subuser

## Authentication

Security requirements:

Scheme | Scopes
--- | ---
BearerAuth | -

## Request Body

Required: yes.

Content type: `application/json`

{ "properties": { "code": { "description": "The 6-digit TOTP code", "type": "string" } }, "required": [ "code" ], "type": "object" }

## Responses

Status | Description | Content Types
--- | --- | ---
200 | 2FA enabled successfully | application/json
400 |  |
401 |  |

Schema for response `200` (`application/json`):

{}
17 March 2026