Oasis Liquido authenticates every API request using JSON Web Tokens (JWT). After logging in, you receive a short-livedDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/FlasheyEstudi/Oasis-Liquido/llms.txt
Use this file to discover all available pages before exploring further.
access_token in the response body. A refresh_token is simultaneously set as an httpOnly cookie by the server — it is not in the JSON response. Pass the access token as a Bearer header on all protected endpoints.
Register a new account
Send a POST request to/api/v1/auth/register with your user details. On success you receive the access_token in the response body; the refresh_token is set as an httpOnly cookie automatically.
Email address — must be unique across the platform
Password for the account
Full display name
Optional phone number
One of:
patient, doctor, receptionist, pharmacy_manager, delivery_driver. Defaults to patient.The
refresh_token is set as an httpOnly cookie by the server — it does not appear in the JSON response body. In browser environments it is sent automatically with subsequent requests.Log in
Use the access token
Pass theaccess_token as a Bearer header on every protected request:
Refresh the token
When the access token expires, call/api/v1/auth/refresh. The refresh token is stored as an httpOnly cookie — no request body needed.
The refresh token is set automatically as an httpOnly cookie on login. Your HTTP client must send cookies for this endpoint to work.
{ "success": true, "data": { "access_token": "eyJ...", "refresh_token": "eyJ..." } }
Log out
Error codes
| Status | Meaning |
|---|---|
| 401 | Missing or invalid access token |
| 403 | Valid token but insufficient role permissions |
| 409 | Email already registered |