---
search:
  tags:
    - auth
    - POST
seo:
  description: >-
    After 5 failed logins for one username (or 20 from one address),… Reference
    for the POST /api/v1/login/password endpoint in the TimescaleDB Enterprise
    API.
  noindex: true
sidebar:
  label: Log in as a local user
  badge: POST
title: Log in as a local user
type: openapi-operation
---
After 5 failed logins for one username (or 20 from one address), the login refuses it for 15 minutes. While an admin has turned off local login, the login answers 403.

`POST /api/v1/login/password`

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

- `accept_terms` (boolean) — Accept the current terms version
- `password` (string)
- `username` (string)

Request body example:

```json
{
  "accept_terms": true,
  "password": "string",
  "username": "string"
}
```

**Responses**

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

Response example, 200:

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