---
search:
  tags:
    - auth
    - GET
seo:
  description: >-
    Get the two-factor state of the current local user. Reference for the GET
    /api/v1/auth/two-factor endpoint in the TimescaleDB Enterprise API.
sidebar:
  label: Get your two-factor state
  badge: GET
title: Get your two-factor state
type: openapi-operation
---
Get the two-factor state of the current local user.

`GET /api/v1/auth/two-factor`

**Responses**

- `200` — OK
- `default` — Error

Response example, 200:

```json
{
  "enabled": true,
  "recovery_codes_remaining": 0,
  "required": true
}
```
