---
title: "GET /api/user/2fa"
method: GET
path: "/api/user/2fa"
tags: ["user"]
---

# GET /api/user/2fa

`GET /api/user/2fa`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - API key in cookie `sessionid`

The account's apps and keys, recovery codes left, and whether this
session may change them.

## Response `200`

- TwoFactorStatus
  - `enabled` boolean, required
  - `recoveryCodesLeft` integer, required
  - `verified` boolean, required: This session has passed the second step, so it may change the methods.
  - `methods` Method[], required
    - `id` string, required: `totp-<n>` or `webauthn-<n>`
    - `kind` 'totp' | 'webauthn', required: * `totp` - totp * `webauthn` - webauthn
    - `name` string, required
    - `passkey` boolean, nullable, required: A key that can log in on its own. Null when the browser did not say.
    - `createdAt` string, date-time, nullable, required
    - `lastUsedAt` string, date-time, nullable, required
  - `passkeys` boolean, required: Passkeys and security keys can be added here.

## Other responses

- `400`
- `401`
- `404`
- `405`
- `406`
- `415`
- `500`

## Changes

- **2026-11-13** `bad51734f75b`: 1 info
  - added the required property `passkeys` to the response with the `200` status
- **2026-11-13** `7aaa5406d62c`: 2 info
  - added the required property `methods` to the response with the `200` status
  - added the required property `verified` to the response with the `200` status
- **2026-11-13** `f930f1978e15`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/changes/api/user/2fa/get.md)

---

[API](https://skmtc.dev/frikanalen/apis/frikanalen-django-api.md) - [All operations](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/llms.txt) - [OpenAPI document](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/revisions/ebd4175e41fe?raw)
