Login
Body
passwordstringRequiredExample:
Password for the user
password123Responses
200
OK
application/json
400
Bad Request
application/json
post
/api/loginTo use this endpoint, you will need to send an HTTP POST request to the URL /login. The request body should be in JSON format and should contain the following fields:
email: a string representing the user's email address, in the format "[email protected]"password: a string representing the user's password
Here's an example of what the request body might look like:
If the login is successful, the API will return a response with a status code of 200 and a JSON body containing a success message and a JSON Web Token (JWT) that can be used to authenticate the user for future requests. The JSON body will look something like this:
Last updated