Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Shashank-H/gaiter-gaurd/llms.txt
Use this file to discover all available pages before exploring further.
Register user
Create a new user account with email and password.Request body
User email address. Must be a valid email format.
User password. Must be at least 8 characters long.
Response
Success message confirming user registration.
Status codes
201- User successfully registered400- Invalid email format or password requirements not met409- User with this email already exists500- Registration failed due to server error
Login user
Authenticate a user and receive access and refresh tokens.Request body
User email address.
User password.
Response
JWT access token for authenticating API requests. Valid for a limited time.
JWT refresh token for obtaining new access tokens.
Status codes
200- Login successful400- Email and password are required401- Invalid credentials500- Login failed due to server error
Refresh access token
Obtain a new access token using a valid refresh token.Request body
Valid refresh token obtained from login.
Response
New JWT access token for authenticating API requests.
New JWT refresh token (rotated for security).
Status codes
200- Token refresh successful400- Refresh token is required401- Invalid refresh token500- Token refresh failed due to server error
Get current user
Retrieve the authenticated user’s profile information.This endpoint requires authentication.
Headers
Bearer token for authentication. Format:
Bearer <jwt>Response
Status codes
200- User profile retrieved successfully401- Unauthorized (missing or invalid token)404- User not found500- Failed to get user info