curl --request POST \
--url https://api.example.com/api/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"400": {},
"401": {},
"message": "<string>",
"token": "<string>",
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"role": "<string>",
"walletAddress": {}
}
}Authenticate a user with email and password
curl --request POST \
--url https://api.example.com/api/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"400": {},
"401": {},
"message": "<string>",
"token": "<string>",
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"role": "<string>",
"walletAddress": {}
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GoodnessFx/GatePass/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header as Bearer {token} for authenticated requests.userId, email, and roleAuthorization: Bearer {token} headerrefreshTokencurl -X POST https://api.gatepass.com/api/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "SecurePass123"
}'
{
"message": "Login successful",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI1NTBlODQwMC1lMjliLTQxZDQtYTcxNi00NDY2NTU0NDAwMDAiLCJlbWFpbCI6InVzZXJAZXhhbXBsZS5jb20iLCJyb2xlIjoiVVNFUiIsImlhdCI6MTcwOTczNjAwMCwiZXhwIjoxNzA5NzM2OTAwfQ...",
"user": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "user@example.com",
"name": "John Doe",
"role": "USER",
"walletAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
}
}
{
"error": "Invalid email format"
}
{
"error": "Invalid email or password"
}
curl -X POST https://api.gatepass.com/api/auth/refresh-token \
-H "Cookie: refreshToken={refresh_token}"
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Authorization header for all authenticated requests:
curl -X GET https://api.gatepass.com/api/events \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
SameSite: strict to prevent CSRF attacks/api/auth/logout endpoint