The API uses stateless JWT authentication. Every protected endpoint requires anDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/CLINTONARMANDO/apiregistropendientes/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <token> header. Obtain a token by calling POST /auth with your employee DNI and password, then include it in all subsequent requests.
POST /auth
Authenticate an employee and receive a signed JWT token along with the full user object.Request body
The employee’s national identity number (DNI). Used as the unique login identifier.
The employee’s password in plain text. Transmitted over HTTPS.
Response — 200 OK
Signed JWT. Include this value in the
Authorization header of every subsequent request as Bearer <token>.Full name of the authenticated employee.
Email address of the authenticated employee.
The role identifier string assigned to this user (e.g.,
ADMIN, TECNICO).Error responses
| Status | Cause |
|---|---|
401 Unauthorized | DNI not found in the system |
401 Unauthorized | Password does not match |
401 Unauthorized | Account exists but vigente is false |
Examples
GET /auth/validar-token
Verify that a JWT token is still valid and retrieve the associated user object. Use this endpoint to check session status or re-hydrate user data on application load.Request headers
The bearer token obtained from
POST /auth. Format: Bearer <token>.Response — 200 OK
Returns the plain string"Token válido y usuario activo" when the token is valid and the associated user account is active.
Error responses
| Status | Cause |
|---|---|
401 Unauthorized | Token is missing, malformed, or expired |
401 Unauthorized | User account was deactivated after token was issued |