---
title: "Authenticate"
method: POST
path: "/auth/authenticate"
tags: ["Authentication"]
---

# Authenticate

`POST /auth/authenticate`

Authenticates user and issues 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

## Changes

- **2023-05-04** `53c6f9d2c775` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the success response with the status `200`
- **2023-05-04** `9e3289441605` — 1 breaking, 2 info
  - removed the success response with the status `200`
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`
- **2023-05-02** `758c324b316f` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the success response with the status `200`
- **2023-04-27** `928024decbd9` — 1 breaking, 2 info
  - removed the success response with the status `200`
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`

[Change history](https://skmtc.dev/mysteriumnetwork/apis/tequila-api/changes/auth/authenticate/post.md)

---

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