The analytics API exposes aggregated KPI metrics and revenue data for the admin dashboard. Both endpoints are scoped to the clinic identified by theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/FerchoSG/healthcare-web/llms.txt
Use this file to discover all available pages before exploring further.
x-clinic-id header, so each clinic sees only its own data. All requests require a valid Authorization bearer token.
Both analytics endpoints are scoped to the active clinic via the
x-clinic-id header. Ensure the header is set to the correct clinic UUID before calling these endpoints.GET /analytics/kpis
Returns high-level KPI counts for the current clinic. These values are used by the CitaBox dashboard home screen to show today’s activity and month-to-date summaries. Response —KPIs
Total number of appointments scheduled for today (clinic local date).
Number of new patient records created in the current calendar month.
Total revenue collected this month, in cents (CRC colones). Calculated from invoices with
payment_status: PAID or PARTIAL.GET /analytics/revenue
Returns a time-series of daily revenue totals for the current month. This data is used to render the revenue trend chart in the admin dashboard. Response —RevenueDataPoint[]
Date of the data point in
YYYY-MM-DD format.Total revenue for that date, in cents (CRC colones).