---
title: Authenticate a user, and retrieve a token to use in endpoints which require an authenticated user
endpoint: POST /api/v1/user/login
description: User
---

`POST /api/v1/user/login`

## Request

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `emailAddress` | string | optional | `mail@example.com` | Email address of the user. |
| `password` | string | optional | `kDWPe4qf$&mgM26&8hX` | Password of the user. |

## Responses

| Status | Meaning |
| --- | --- |
| 200 | User logged in successfully. |
| 400 | A list of possible errors for this endpoint. |

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `uuid` | string | optional | `60bd85f1-1b05-427f-9226-915b6b13f39e` | UUID of the user. |
| `token` | string | optional | `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c` | Authentication token. Use this to request resources requiring user authentication. |
| `refreshToken` | string | optional | `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c` | Refresh token. Use this to request a new authenticatoin token. |
