---
title: "Login"
method: POST
path: "/auth/login"
tags: ["Authentication"]
---

# Login

`POST /auth/login`

Authenticates user and sets cookie with issued auth token

## Request body

- AuthRequest
  - `password` string
  - `username` string

## Response `200`

Authentication succeeded

- AuthResponse
  - `expires_at` string
  - `token` string

## Other responses

- `400` — Failed to parse or request validation failed
- `401` — Authentication failed

---

[API](https://skmtc.net/mysteriumnetwork/apis/tequila-api.md) · [All operations](https://skmtc.net/mysteriumnetwork/apis/tequila-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mysteriumnetwork/tequila-api/versions/cb1439736b63/schema)
