---
search:
  tags:
    - auth
    - POST
seo:
  description: >-
    Log in with the console auth token. Reference for the POST /api/v1/login
    endpoint in the TimescaleDB Enterprise API.
sidebar:
  label: Log in with the auth token
  badge: POST
title: Log in with the auth token
type: openapi-operation
---
Log in with the console auth token.

`POST /api/v1/login`

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

- `accept_terms` (boolean) — Accept the current terms version
- `token` (string) — Console auth token (TSE\_AUTH\_TOKEN)

Request body example:

```json
{
  "accept_terms": true,
  "token": "string"
}
```

**Responses**

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

Response example, 200:

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