curl --request POST \
--url https://api.example.com/api/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"success": true,
"data": {
"user": {
"id": "<string>",
"email": "<string>",
"fullName": "<string>",
"phone": {},
"avatar": {},
"emailVerified": true
},
"accessToken": "<string>",
"refreshToken": "<string>"
}
}Authenticate 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>"
}
'{
"success": true,
"data": {
"user": {
"id": "<string>",
"email": "<string>",
"fullName": "<string>",
"phone": {},
"avatar": {},
"emailVerified": true
},
"accessToken": "<string>",
"refreshToken": "<string>"
}
}Authenticates a user with their email and password credentials. Returns the user profile along with access and refresh tokens. Updates the user’s last login timestamp.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LeonardoCaero/platform-api/llms.txt
Use this file to discover all available pages before exploring further.
Show data properties
{
"success": false,
"error": {
"message": "Invalid credentials",
"statusCode": 401
}
}
{
"success": false,
"error": {
"message": "Account is disabled",
"statusCode": 403
}
}
{
"success": false,
"error": {
"message": "Validation error",
"statusCode": 400,
"details": []
}
}
curl -X POST https://api.example.com/api/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "securePassword123"
}'
{
"success": true,
"data": {
"user": {
"id": "clx1234567890abcdef",
"email": "user@example.com",
"fullName": "John Doe",
"phone": "+1234567890",
"avatar": null,
"emailVerified": false
},
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "rt_clx1234567890abcdef"
}
}