The authentication endpoints are the entry point for every FridgeRadar client. Use POST /register to provision a new user account, then POST /login to receive a short-lived JWT Bearer token that must be included in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/EstefanoARG/FridgeRadar/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header of every subsequent request.
POST /api/v1/auth/register
Creates a new user account and returns the persisted user profile. No authentication is required.The user’s first name(s).
The user’s last name(s). Optional.
A valid email address. Used as the login identifier and must be unique across all accounts.
Plain-text password. The service hashes it before persisting.
Response — 201 Created
Auto-assigned primary key for the new user.
First name(s) as stored.
Last name(s), or
null if not provided.Verified email address.
ISO 8601 timestamp of when the account was created.
Account status. Defaults to
"activo" on creation.| Status | Meaning |
|---|---|
201 Created | Account created successfully; user object returned. |
422 Unprocessable Entity | Validation error — missing required field or invalid email format. |
409 Conflict | An account with that email already exists. |
POST /api/v1/auth/login
Authenticates a user with their email and password and returns a JWT Bearer token. The request body must be sent asapplication/x-www-form-urlencoded (OAuth2 Password Flow). Pass the user’s email address in the username field.
The user’s email address (mapped to the
correo field internally).The user’s plain-text password.
Response — 200 OK
A signed JWT string. Include this value in the
Authorization: Bearer <token> header for all protected endpoints.Always
"bearer".| Status | Meaning |
|---|---|
200 OK | Credentials valid; token returned. |
401 Unauthorized | Incorrect email or password. |
422 Unprocessable Entity | Form fields missing or malformed. |