curl --request POST \
--url https://api.example.com/api/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"message": "<string>",
"accessToken": "<string>",
"refreshToken": "<string>",
"user": {
"id": "<string>",
"email": "<string>",
"nombre": {},
"apellido": {},
"telefono": {},
"email_verified": true,
"tour_version": {},
"tour_completed_at": {}
},
"error": "<string>"
}Authenticate a user and obtain access tokens
curl --request POST \
--url https://api.example.com/api/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"message": "<string>",
"accessToken": "<string>",
"refreshToken": "<string>",
"user": {
"id": "<string>",
"email": "<string>",
"nombre": {},
"apellido": {},
"telefono": {},
"email_verified": true,
"tour_version": {},
"tour_completed_at": {}
},
"error": "<string>"
}Authenticates a user with email and password credentials. Returns access and refresh tokens for subsequent authenticated requests.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pakomercado0517/tresa-contafy-web/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header as Bearer {accessToken}.curl -X POST https://api.contafy.com/api/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "usuario@ejemplo.com",
"password": "SecurePass123!"
}'
{
"message": "Inicio de sesión exitoso",
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "usr_1a2b3c4d5e6f7g8h",
"email": "usuario@ejemplo.com",
"nombre": "Juan",
"apellido": "Pérez",
"telefono": "+52 55 1234 5678",
"email_verified": true,
"tour_version": "v1.0",
"tour_completed_at": "2024-01-15T10:30:00Z"
}
}
{
"error": "INVALID_CREDENTIALS",
"message": "Email o contraseña incorrectos"
}
{
"error": "VALIDATION_ERROR",
"message": "Email y contraseña son requeridos"
}