These endpoints handle the full user onboarding flow: submitting registration data creates a pending account and dispatches a verification email. Clicking the link in that email activates the account and generates the user’s secure key. The secure key is aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Jcofles/Proyecto-web/llms.txt
Use this file to discover all available pages before exploring further.
.jw file tied to both the primary and backup email addresses; it can be used later as an alternative login credential.
POST /api/auth/register
Creates a pending user record and sends a verification email to the provided primary address. The account is not active until the email is confirmed via/api/auth/verify-email.
First name(s). Letters and spaces only (including accented characters). Maximum 191 characters.
Last name(s). Letters and spaces only (including accented characters). Maximum 191 characters.
Primary email address. Used for login and notifications. Maximum 191 characters.
Backup email address for secure key delivery. Must differ from
email. Maximum 191 characters.Password for the account. Minimum 8 characters.
Must match
password.Responses
Confirmation that the account was created and the verification email was dispatched.
Internal identifier for the pending registration record.
Echoes back the primary email address.
The verification email is sent asynchronously after the HTTP response is returned, so the 201 does not guarantee delivery has occurred yet. If the email does not arrive within a few minutes, use
/api/auth/resend-verification.POST /api/auth/verify-email
Activates a pending account using the 64-character token from the verification email link. On success, the user is moved from thepending_users table to the users table and their secure key is generated.
The 64-character alphanumeric verification token from the email link. Expires 24 hours after registration.
Responses
"Email verificado exitosamente" on success.The newly created user record.
true when the secure key was generated during this verification. Present for accounts coming from pending_users.POST /api/auth/resend-verification
Generates a new verification token and resends the verification email. Use this when the original email was not received or the 24-hour token has expired.The primary email address of the unverified account.
Responses
"Correo de verificación reenviado" on success.POST /api/auth/send-secure-key-email
Sends the.jw secure key file as an email attachment to the user’s backup (secure_email) address. This is useful when a user needs the file but has not yet downloaded it, or needs it re-sent.
The primary email address of the account whose key should be sent.
Responses
"Archivo enviado al correo seguro" on success.GET /api/auth/secure-key-download
Downloads the.jw secure key file for the authenticated user. The response is a binary file attachment, not JSON. Requires a valid bearer token.
Headers
| Header | Value |
|---|---|
Authorization | Bearer {token} |
Response
The server returns the file with the following headers:| Header | Value |
|---|---|
Content-Type | application/octet-stream |
Content-Disposition | attachment; filename="<key-file>.jw" |
.jw file content. Save it securely; it can be used to log in via POST /api/auth/login-with-key if you lose your password.
401 — Unauthenticated