POST
/signin
Sign in user
Authentication
Description
Sign in a user with email and password. If two-factor authentication is enabled, include an authenticator-app code or recovery code. Returns a JWT token valid for 24 hours and a refresh token for renewing it.
Request Body
requiredapplication/json
emailstring (email)required
Example:
[email protected]passwordstring (password)required
Example:
securepassword123otp_codestring
Authenticator-app code or recovery code, required only when two-factor authentication is enabled.
Example:
123456Responses
200
Sign in successful
application/jsonstatusstring
Example:
successmessagestring
Example:
Authentication successfultokenstring
JWT token for authentication (valid for 24 hours)
Example:
eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.K7-example-tokenrefresh_tokenstring
Refresh token for obtaining new JWT tokens. Single-use.
Example:
dGhpcyBpcyBhIHNhbXBsZSByZWZyZXNoIHRva2Vu
401
Invalid credentials or missing two-factor authentication code
application/jsonExample:
{
"status": "error",
"message": "Invalid email or password"
}
403
Account disabled
application/jsonExample:
{
"status": "error",
"message": "This account is disabled"
}