---
title: "GET Two-factor authentication setup form/information"
method: GET
path: "/tf-setup"
---

# GET Two-factor authentication setup form/information

`GET /tf-setup`

## Response `200`

Setup form

- object
  - `tf_required` string — Config setting SECURITY_TWO_FACTOR_REQUIRED.
  - `tf_primary_method` string — Current (if any) setup method (deprecated).
  - `tf_method` string — Current (if any) setup method.
  - `tf_available_methods` string — Config setting SECURITY_TWO_FACTOR_ENABLED_METHODS. If SECURITY_TWO_FACTOR_REQUIRED is false then 'disable' will be part of the set.
  - `tf_phone_number` string — Currently configured (if any) phone number.

## Changes

- **2024-01-05** `3501ef8122e4` — 1 info
  - added the optional property `tf_method` to the response with the `200` status
- **2020-08-31** `a06cc5a6dff4` — 1 info
  - endpoint added
- **2019-07-23** `11c8459a5c04` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/pallets-eco/apis/flask-security-external-api/changes/tf-setup/get.md)

---

[API](https://skmtc.dev/pallets-eco/apis/flask-security-external-api.md) · [All operations](https://skmtc.dev/pallets-eco/apis/flask-security-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pallets-eco/flask-security-external-api/revisions/ee92f388dafa/schema)
