The Admin API provides a read-only view into the operational health of the entire Oasis Liquido platform. The stats endpoint aggregates counts and breakdowns across all resources in real time. The audit log endpoint exposes a chronological, immutable record of every significant action taken by any user, which is essential for compliance and incident investigation.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.
GET /api/v1/admin/stats
Return a snapshot of platform-wide statistics. Optionally scope results by clinic, pharmacy, or date range.Query parameters
Scope statistics to a specific clinic UUID.
Scope statistics to a specific pharmacy UUID.
ISO 8601 lower bound for the reporting period.
ISO 8601 upper bound for the reporting period.
curl example
AdminStats response fields
Total number of clinic records.
Total number of pharmacy records.
Total number of users with the
doctor role.Total number of users with the
patient role.Total number of appointment records.
Total number of prescription records.
Total number of sale transactions.
Total number of delivery orders.
Aggregate revenue for the current calendar month.
Count of appointments grouped by status. Keys:
scheduled, confirmed, in_progress, completed, cancelled.Count of prescriptions grouped by status. Keys:
active, partially_fulfilled, fulfilled, expired.Count of delivery orders grouped by status. Keys:
pending, assigned, picked_up, in_transit, delivered, cancelled.GET /api/v1/admin/audit-logs
Return a paginated list of audit log entries. Entries are immutable and sorted in descending chronological order. Use the filter parameters to narrow results for a specific user, action type, or resource.Query parameters
Filter by the UUID of the user who performed the action.
Filter by action name, e.g.
"CREATE_APPOINTMENT" or "FULFILL_PRESCRIPTION".Filter by the type of resource affected, e.g.
"Appointment", "Prescription", "DeliveryOrder".ISO 8601 lower bound on
created_at.Page number.
Results per page.
curl example
AuditLog response fields
UUID of the audit log entry.
UUID of the user who performed the action.
Display name of the user at the time of the action.
Name of the action performed, e.g.
"CREATE_PRESCRIPTION".Type of the resource affected, e.g.
"Prescription".UUID of the specific resource that was affected.
Optional JSON string or human-readable description with additional context about the action.
ISO 8601 timestamp of when the action occurred.