User Login

API endpoint for user login through the Meetra AI API.

Endpoint

POST /api-login

Parameters

Request Body

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

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

Responses

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

Last updated