API Ecommerce implements a secure, email-based 3-step password reset flow. A unique code is generated, stored against the user record, and emailed to the registered address. The code expires after 60 minutes. No authentication token is required for any of these three endpoints — they are publicly accessible within theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JuanSCaicedo/Api-Ecommerce/llms.txt
Use this file to discover all available pages before exploring further.
/api/auth route group (subject to the 10 requests/minute rate limit).
Request Reset Email
Request Body
The email address associated with the account that needs a password reset.
Responses
| Response body | Meaning |
|---|---|
{"message": 200} | Email found — reset code sent successfully. |
{"message": 403} | No account found with the provided email address. |
| HTTP 503 | Site is in maintenance mode. |
Example Request
Example Response
The code is generated via PHP’s
uniqid() function and stored in the code_verified column of the users table. The expiry timestamp is set to Carbon::now()->addMinutes(60) and saved in code_expires_at.Verify the Code
Request Body
The verification code received in the reset email. This is matched against the
code_verified column in the users table.Responses
| Response body | Meaning |
|---|---|
{"message": 200} | Code is valid and has not expired. |
{"message": 401} | Code was found but has expired (past 60-minute window). |
{"message": 403} | Code not found — no matching record in the users table. |
| HTTP 503 | Site is in maintenance mode. |
Example Request
Example Response
Set New Password
code_verified and code_expires_at fields are both cleared to null, preventing code reuse.Request Body
The same verification code used in Step 2. Must still exist in the
code_verified column.The new password for the account. Stored as a bcrypt hash.
Responses
| Response body | Meaning |
|---|---|
{"message": 200} | Password updated successfully. |
| HTTP 503 | Site is in maintenance mode. |
Example Request
Example Response
After a successful password reset, the
code_verified and code_expires_at columns are set to null. The code cannot be submitted again — any repeat attempt will return {"message": 403} from Step 2 or silently fail at this step.