Skip to main content

Documentation 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.

All requests to the Oasis Liquido API must be authenticated using JSON Web Tokens (JWT). After a successful login or registration, the API returns an access_token that you include in every subsequent request. A refresh_token is also issued to obtain a new access token when the current one expires, without requiring the user to log in again.

Base URL

The development base URL is:
http://localhost:8000/api/v1
All endpoint paths in this reference are relative to this base URL.

Authorization header

Pass your access token in the Authorization header using the Bearer scheme:
Authorization: Bearer <access_token>

Minimal curl example

curl http://localhost:8000/api/v1/auth/me \
  --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Auth endpoint summary

MethodPathDescription
POST/auth/registerCreate a new user account
POST/auth/loginAuthenticate and receive tokens
POST/auth/refreshExchange a refresh token for a new access token
POST/auth/logoutInvalidate the current session
GET/auth/meReturn the authenticated user’s profile

Common error responses

StatusMeaningWhen it occurs
401 UnauthorizedMissing or invalid tokenNo Authorization header, or the token is expired or malformed
403 ForbiddenInsufficient roleThe authenticated user’s role is not permitted for this endpoint
409 ConflictResource already existsAttempting to register an email address that is already in use
The refresh_token is set automatically as an httpOnly cookie (refresh_token) by the server on login and register — it is not returned in the JSON response body. Your HTTP client must send cookies to use the refresh endpoint. The access_token is returned in the response body and should be stored in memory for use as the Bearer token.

Build docs developers (and LLMs) love