Login

api-docs Redoc document (api spec)

Login an existing user

post
Body
emailstring · emailRequired

Email address for the user

Example: [email protected]
passwordstringRequired

Password for the user

Example: password123
Responses
200

OK

application/json
post
/api/login

To 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