> For the complete documentation index, see [llms.txt](https://docs.meetra.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meetra.ai/meetra-ai-conversation-intelligence-api-reference/user-login.md).

# User Login

### Endpoint

```
POST /api-login
```

### Parameters

| Name    | Type   | Description                                 |
| ------- | ------ | ------------------------------------------- |
| payload | Object | User login credentials (email and password) |

### Request Body

The request body should contain a JSON object with the following properties:

```json
{
  "email": "string",
  "password": "string"
}
```

### Responses

| HTTP Code | Description                                                |
| --------- | ---------------------------------------------------------- |
| 200       | Success. Returns a JSON response containing the JWT token. |
| 400       | Bad request. Invalid email or password.                    |

#### Success Response

**HTTP Code:** 200

**Response Body:**

```json
{
  "token": "<JWT_token>"
}
```

#### Error Response

**HTTP Code:** 400

**Response Body:**

```json
{
  "message": "Invalid email or password"
}
```

### Example

#### Request

```
POST /api-login
Content-Type: application/json

{
  "email": "example@example.com",
  "password": "password123"
}
```

#### Response

```
HTTP/1.1 200 OK
Content-Type: application/json

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
```

### Error Codes

| HTTP Code | Description                |
| --------- | -------------------------- |
| 400       | Invalid email or password. |
