POST /signin

Sign in user

Authentication

Description

Sign in a user with email and password. Returns a JWT token valid for 24 hours and a refresh token for renewing it.

Request Body

required

application/json

emailstring (email)required
passwordstring (password)required
Example: securepassword123

Responses

200 Sign in successful
application/json
statusstring
Example: success
messagestring
Example: Authentication successful
tokenstring
JWT token for authentication (valid for 24 hours)
Example: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.K7-example-token
refresh_tokenstring
Refresh token for obtaining new JWT tokens. Single-use.
Example: dGhpcyBpcyBhIHNhbXBsZSByZWZyZXNoIHRva2Vu
401 Invalid credentials
application/json
Example:
{
  "status": "error",
  "message": "Invalid email or password"
}
403 Account disabled
application/json
Example:
{
  "status": "error",
  "message": "This account is disabled"
}