Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/JulietaEM/EdgeTimer/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint creates a new client (cliente) account on the EdgeTimer platform. After a successful registration, the client can immediately log in using the /auth/login endpoint. Barbers are pre-configured by the admin and cannot register through this endpoint.

Base URL

https://edgetimer-backend.onrender.com

Request

POST /auth/register-client

Body parameters

nombre
string
required
Full name of the client.
email
string
required
Email address for the account. Automatically normalized to lowercase before storing.
telefono
string
Phone number. Optional contact information for the client.
password
string
required
Account password. Must be at least 6 characters long.

Examples

curl --request POST \
  --url https://edgetimer-backend.onrender.com/auth/register-client \
  --header 'Content-Type: application/json' \
  --data '{
    "nombre": "Ana López",
    "email": "ana.lopez@example.com",
    "telefono": "+52 55 1234 5678",
    "password": "mysecretpass"
  }'

Response

201 Created

message
string
Confirmation message indicating that registration was successful.
profile
object
The newly created client profile.
Example response
{
  "message": "Registro exitoso. Ahora puedes iniciar sesion.",
  "profile": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "nombre": "Ana López",
    "usuario": "ana.lopez",
    "email": "ana.lopez@example.com",
    "role": "cliente"
  }
}

Error responses

StatusDescription
409 ConflictThe email address is already registered to an existing account.
400 Bad RequestA required field is missing, the email format is invalid, or the password is shorter than 6 characters.
409 example
{
  "statusCode": 409,
  "message": "Este email ya esta registrado"
}
400 example
{
  "statusCode": 400,
  "message": "La contrasena debe tener minimo 6 caracteres"
}
Barbers cannot self-register. Barber accounts are pre-configured by the EdgeTimer admin. Only client accounts can be created through this endpoint.

Build docs developers (and LLMs) love