Register
curl --request POST \
--url https://api.example.com/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"nombre": "<string>",
"apellido": "<string>",
"telefono": "<string>"
}
'{
"message": "<string>",
"user": {
"id": "<string>",
"email": "<string>",
"nombre": {},
"apellido": {},
"telefono": {},
"email_verified": true,
"tour_version": {},
"tour_completed_at": {}
},
"error": "<string>"
}Authentication
Register
Create a new user account
POST
/
api
/
auth
/
register
Register
curl --request POST \
--url https://api.example.com/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"nombre": "<string>",
"apellido": "<string>",
"telefono": "<string>"
}
'{
"message": "<string>",
"user": {
"id": "<string>",
"email": "<string>",
"nombre": {},
"apellido": {},
"telefono": {},
"email_verified": true,
"tour_version": {},
"tour_completed_at": {}
},
"error": "<string>"
}Registers a new user in the Contafy platform. After successful registration, a verification email is sent to the provided email address.
400 Bad Request
Authentication
No authentication required.Request Body
User’s email address. Must be a valid email format and unique in the system.
User’s password. Should meet security requirements (minimum 8 characters recommended).
User’s first name (optional).
User’s last name (optional).
User’s phone number (optional).
Response
Success message confirming registration.
The newly created user object.
Unique user identifier.
User’s email address.
User’s first name.
User’s last name.
User’s phone number.
Email verification status. Will be
false for newly registered users.Version of the product tour completed by the user.
Timestamp when the tour was completed.
Example Request
curl -X POST https://api.contafy.com/api/auth/register \
-H "Content-Type: application/json" \
-d '{
"email": "usuario@ejemplo.com",
"password": "SecurePass123!",
"nombre": "Juan",
"apellido": "Pérez",
"telefono": "+52 55 1234 5678"
}'
Example Response
{
"message": "Usuario registrado exitosamente. Por favor verifica tu correo electrónico.",
"user": {
"id": "usr_1a2b3c4d5e6f7g8h",
"email": "usuario@ejemplo.com",
"nombre": "Juan",
"apellido": "Pérez",
"telefono": "+52 55 1234 5678",
"email_verified": false,
"tour_version": null,
"tour_completed_at": null
}
}
Error Responses
Error type identifier.
Human-readable error message.
Common Errors
400 Bad Request{
"error": "VALIDATION_ERROR",
"message": "El email ya está registrado"
}
{
"error": "VALIDATION_ERROR",
"message": "El formato del email es inválido"
}
⌘I