analytics

Trend call conoscitiva

Returns metrics (avg days reg->intro, intro->start), applied filters, paginated rows from trend_call_conoscitiva, and chart data (counts by start_type and has_started). Single endpoint replacing multiple Supabase queries.

get/api/analytics/trend-call-conoscitiva

Query parameters

from_datestring date nullable

Filter: first_intro_datetime >= from_date (YYYY-MM-DD). Default: today minus 30 days.

Filter: first_intro_datetime >= from_date (YYYY-MM-DD). Default: today minus 30 days.

to_datestring date nullable

Filter: first_intro_datetime <= to_date (YYYY-MM-DD). Default: today.

Filter: first_intro_datetime <= to_date (YYYY-MM-DD). Default: today.

has_verified_consent_psiboolean nullable

Filter by psychologist informed consent verified (true/false).

Filter by psychologist informed consent verified (true/false).

has_verified_consent_nutriboolean nullable

Filter by nutritionist informed consent verified (true/false).

Filter by nutritionist informed consent verified (true/false).

has_startedboolean nullable

Filter by has_started (true/false).

Filter by has_started (true/false).

start_typestring nullable

Filter by start_type: None, Psychologist only, Nutritionist only, Both.

Filter by start_type: None, Psychologist only, Nutritionist only, Both.

per_pageinteger

Page size.

Page size.

pageinteger

Page number (1-based).

Page number (1-based).

Response

Successful Response

Changes