Skip to main content

Documentation 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.

After a successful registration, TuKit sends a 5-digit verification code to the user’s email address. This endpoint validates that code and, if correct, flips the account’s activate status from Inactivo (value "2") to Activado (value "1"). Until this step is completed the user cannot log in — the login endpoint will reject inactive accounts with a 403 response. The verification code is a one-time value generated at registration time and stored on the user document. POST /api/user/verify-account

Authentication

No authentication required.

Request Body

email
string
required
The email address used during registration. Must exactly match the address on file (the lookup is case-sensitive at the database level, so submit the address in the same form it was registered with).
code
string
required
The 5-digit verification code delivered to the user’s email inbox after registration. Codes consist of digits 15 only (each digit is generated via Math.ceil(Math.random() * 5)).

Response

200 — Success

msj
string
Human-readable confirmation that the account has been verified and the user may now log in.
status
boolean
Always true on success.
On success, two fields are updated on the user document internally: login_code_confirmed is set to the verified code value, and activate is updated to [{ name: "Activado", value: "1" }]. Neither value is returned in the response body.

Error Responses

StatusCause
203No user found for the supplied email address.
203The supplied code does not match the login_code stored on the user document.
500Unexpected server or database error.
Both a missing user and a wrong code return the same 203 status and message. This is intentional to avoid leaking information about which email addresses are registered.

Example

curl -X POST https://your-tukit-api.com/api/user/verify-account \
  -H "Content-Type: application/json" \
  -d '{
    "email": "marcos@example.com",
    "code": "34512"
  }'
Success response:
{
  "msj": "La cuenta ha sido confirmada.Inicia sesión",
  "status": true
}
Error — incorrect code or user not found:
{
  "msj": "Código de verificación incorrecto. Inténtalo nuevamente",
  "status": false
}

Build docs developers (and LLMs) love