Authenticates a user with email and password.
- On success, returns basic user information and sets an
auth-tokenHTTP-only cookie used to authorize subsequent requests. - On failure, returns an error message and does not set the cookie.
{
"email": "admin@example.edu",
"password": "strong-password-123"
}Credentials used to sign into the Edmo dashboard and API.
Login successful. Auth cookie is set in the response.
Successful login response. The auth cookie is sent via Set-Cookie header.
Basic user information for the currently authenticated user.
Internal user identifier.
High-level role for permissions (e.g., ADMIN, EDITOR, VIEWER).
Whether the account is disabled.
Fine-grained permission map used internally.
Missing email or password.
Standard error response envelope.
Human-readable error message.
Invalid credentials or account not found.
Standard error response envelope.
Human-readable error message.
Account is disabled.
Standard error response envelope.
Human-readable error message.
Unexpected server error during login.
Standard error response envelope.
Human-readable error message.