> 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. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.meetra.ai/meetra-ai-conversation-intelligence-api-reference/user-login.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
