Register a new user account with customer role
curl --request POST \
--url https://api.example.com/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "<string>",
"password": "<string>"
}
'{
"message": "<string>",
"user": {
"user.id": 123,
"user.name": "<string>",
"user.email": "<string>",
"user.role": "<string>",
"user.createdAt": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GioTaipe/E-commerce/llms.txt
Use this file to discover all available pages before exploring further.
customer role. This endpoint is rate-limited to 10 requests per 15-minute window.
{
"name": "John Doe",
"email": "john.doe@example.com",
"password": "securePassword123"
}
{
"message": "Usuario registrado exitosamente",
"user": {
"id": 1,
"name": "John Doe",
"email": "john.doe@example.com",
"role": "customer",
"createdAt": "2026-03-06T10:30:00.000Z"
}
}
{
"error": "El email ya está en uso"
}
{
"error": "Validation failed",
"details": [
"La contraseña debe tener al menos 6 caracteres"
]
}
{
"error": "Demasiados intentos. Intenta de nuevo en 15 minutos."
}
customer rolecurl --request POST \
--url https://api.example.com/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "<string>",
"password": "<string>"
}
'{
"message": "<string>",
"user": {
"user.id": 123,
"user.name": "<string>",
"user.email": "<string>",
"user.role": "<string>",
"user.createdAt": "<string>"
}
}