Getting Started
To use the API, you’ll need to:- Register a new user account or login with existing credentials
- Use the returned access token in subsequent requests
- Include the token in your Authorization header
Bearer Token
Include the access token in the Authorization header of your requests:Available Endpoints
Register
Create a new user account.Login
Authenticate an existing user.Logout
Invalidate the current access token.User Profile
Get the authenticated user’s details.Password Reset
The API provides endpoints for password reset functionality:/auth/forgot-password- Request a password reset link/auth/reset-password- Reset password using the token from email
Token Expiration
Access tokens expire after 24 hours. Use the refresh token endpoint to obtain a new token:Error Handling
Common authentication errors include:- 401 Unauthenticated - Invalid or expired token
- 422 Validation Error - Invalid input data
- 429 Too Many Attempts - Rate limit exceeded

