cURL
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>" }
Create a new user account
false
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" }'
{ "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": "VALIDATION_ERROR", "message": "El email ya está registrado" }
{ "error": "VALIDATION_ERROR", "message": "El formato del email es inválido" }