Comment on page
User Login
API endpoint for user login through the Meetra AI API.
POST /api-login
Name | Type | Description |
---|---|---|
payload | Object | User login credentials (email and password) |
The request body should contain a JSON object with the following properties:
{
"email": "string",
"password": "string"
}
HTTP Code | Description |
---|---|
200 | Success. Returns a JSON response containing the JWT token. |
400 | Bad request. Invalid email or password. |
HTTP Code: 200
Response Body:
{
"token": "<JWT_token>"
}
HTTP Code: 400
Response Body:
{
"message": "Invalid email or password"
}
POST /api-login
Content-Type: application/json
{
"email": "[email protected]",
"password": "password123"
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
HTTP Code | Description |
---|---|
400 | Invalid email or password. |