User Login

API endpoint for user login through the Meetra AI API.

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:

{
  "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:

{
  "token": "<JWT_token>"
}

Error Response

HTTP Code: 400

Response Body:

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

Last updated