POST
/signin
Sign in user
Authentication
Description
Sign in a user with email and password. Returns a JWT token valid for 1 year for subsequent API calls.
Request Body
requiredapplication/json
emailstring (email)required
Example:
[email protected]passwordstring (password)required
Example:
securepassword123Responses
200
Sign in successful
application/jsonstatusstring
Example:
successmessagestring
Example:
Authentication successfultokenstring
JWT token for authentication
Example:
eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.K7-example-token
401
Invalid credentials
application/jsonExample:
{
"status": "error",
"message": "Invalid email or password"
}
403
Account disabled
application/jsonExample:
{
"status": "error",
"message": "This account is disabled"
}