# User Login

### LOGS USER INTO THE SYSTEM

## Logs user into the system

<mark style="color:green;">`POST`</mark> `/accounts/login`

#### Request Body

| Name                               | Type   | Description                                       |
| ---------------------------------- | ------ | ------------------------------------------------- |
| <mark style="color:red;">\*</mark> | String | Object that contains username and password fields |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Session'
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
}
```

{% endtab %}
{% endtabs %}
