Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Danielsl4/TFG_DAM_2526_Consulta2/llms.txt

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

Create a new user account by submitting a username, email address, and password. On success, a verification email is sent to the provided address. The account is not active for login until the email link is clicked. Unverified accounts are automatically deleted after 24 hours.
A verification email is sent immediately after registration. The user must click the link in that email within 24 hours or the account will be automatically deleted.

Rate limiting

This endpoint is protected by authLimiter: 10 requests per 15 minutes per IP address. Exceeding this limit returns a 429 response.

Request body

username
string
required
The desired username. Must be unique across all accounts. Uniqueness is checked in a case- and accent-insensitive manner (e.g., futbolista and Futbolísta are treated as the same value).
email
string
required
The user’s email address. Must be unique across all accounts. Uniqueness is checked case-insensitively.
password
string
required
The account password. Stored as a bcrypt hash (cost factor 10).

Response

201 — Account created

{
  "message": "Registro exitoso. Por favor, revisa tu correo para verificar tu cuenta.",
  "user": {
    "id": 42,
    "username": "futbolista",
    "email": "[email protected]",
    "role": "user"
  }
}
message
string
Confirmation message instructing the user to verify their email.
user
object

Error responses

StatusCondition
400One or more required fields (username, email, password) are missing.
409The username or email address is already associated with an existing account.
429Rate limit exceeded (10 requests per 15 minutes per IP).
500Internal server error during registration.

Example

cURL
curl --request POST \
  --url https://api.example.com/register \
  --header 'Content-Type: application/json' \
  --data '{
    "username": "futbolista",
    "email": "[email protected]",
    "password": "securePassword123"
  }'

Build docs developers (and LLMs) love