---
search:
  tags:
    - auth
    - POST
seo:
  description: >-
    Needs the current password and a current code. Not… Reference for the POST
    /api/v1/auth/two-factor/disable endpoint in the TimescaleDB Enterprise API.
sidebar:
  label: Turn off your two-factor
  badge: POST
title: Turn off your two-factor
type: openapi-operation
---
Needs the current password and a current code. Not possible when an admin requires two-factor. Ends the other sessions of the user and sets a new session cookie.

`POST /api/v1/auth/two-factor/disable`

**Request body** (`application/json`, required)

- `code` (string) — The 6-digit code of the authenticator app
- `current_password` (string)

Request body example:

```json
{
  "code": "string",
  "current_password": "string"
}
```

**Responses**

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

Response example, 200:

```json
{
  "ok": true
}
```
