Sign In
Sign in with email and password to receive an authentication token.
POST /api/user/signin
Request Body
{
"email": "[email protected]",
"password": "userpassword",
"PlatformId": "123"
}
Response
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": 1,
"email": "[email protected]",
"name": "John Doe",
"role": "user",
"status": "active"
}
}
Error Responses
// 401 Unauthorized
{
"error": "Invalid credentials"
}
// 400 Bad Request
{
"error": "Email and password are required"
}