analytics

Trend call conoscitiva

Changed on

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

Request

  • Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.corabea.it/api/analytics/trend-call-conoscitiva
  • Auth: HTTP bearer

Query parameters

from_datestring date nullable

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.

has_verified_consent_psiboolean nullable

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

has_verified_consent_nutriboolean nullable

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

has_startedboolean nullable

Filter by has_started (true/false).

start_typestring nullable

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

operator_idstring uuid nullable

Filter by the customer-care operator who held the first intro call.

per_pageinteger

Page size.

pageinteger

Page number (1-based).

Response

Successful Response

Changes

    • info

      added the new optional query request parameter operator_id

    • info

      added the optional property to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status