Registering a new account creates a user record with a default role ofDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/tukit/llms.txt
Use this file to discover all available pages before exploring further.
Usuario (value "1") and an inactive activation status. After the record is saved, the API automatically generates a random 5-digit verification code, stores it on the user document, and dispatches it to the provided email address. The account cannot be used to log in until that code is confirmed via the Verify Account endpoint.
POST /api/user/register
Authentication
No authentication required.Request Body
The display name for the new user. Stored as-is (not normalized to lowercase).
The user’s email address. Stored in lowercase. Must be unique across all accounts — if an account already exists with this address the request is rejected with a
202 response.Plain-text password. Hashed with bcrypt (cost factor 10) before storage. Never returned in any response.
Response
200 — Success
A human-readable confirmation message in Spanish confirming the account was created and that a verification code has been sent.
Always
true on success.The newly created user document as returned by Mongoose.
The
login_code field will be present on the returned savedUser object. Do not expose or store this value client-side — it is only used internally by the verification flow.Error Responses
| Status | Cause |
|---|---|
202 | A required field (userName, email, or password) is missing from the request body. |
202 | An account with the provided email address already exists. |
500 | Unexpected server or database error. |