# login

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

\<Description of the endpoint>

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Request-Body**

<table><thead><tr><th width="193">Name</th><th width="113">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td><td>user ID</td></tr><tr><td><code>password</code></td><td>string</td><td>password of the user</td></tr></tbody></table>

**Response**

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

<pre class="language-json"><code class="lang-json">{
  "message": "Login successful",
<strong>  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5c...",  // JWT token
</strong>}
</code></pre>

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Login Failed"
}
```

{% endtab %}
{% endtabs %}
