Skip to content
Shortcut: /, ⌘K or Ctrl+K

polymorfa analytics

Read WhatsApp number activity and operational vitals.

Polymorfa CLI · CLI API requests

View as Markdown

polymorfa analytics get

Read WhatsApp number analytics.

Read WhatsApp number activity, completed 24-hour read and reply rates, response times, call outcomes and connection vitals. Requires sessions:read and Analytics enabled in the Console. Project credentials read only their project.

Usage

polymorfa analytics get [flags]

Examples

polymorfa analytics get --project PROJECT_ID --json
polymorfa analytics get --since 2026-10-01T00:00:00Z --until 2026-10-03T00:00:00Z

Flags

  • --session-id <value>takes a value

    Limit to one number record UUID.

  • --since <value>takes a value

    Start time in RFC 3339; defaults to 30 days ago.

  • --until <value>takes a value

    End time in RFC 3339; defaults to now.

Also accepts the global flags.

polymorfa analytics metrics

Export collector-compatible analytics metrics.

Write Prometheus or OpenMetrics gauges to stdout. Requires sessions:read and Analytics enabled in the Console. Counts cover completed UTC hours and are not monotonic counters. Project credentials read only their project. Disabled Analytics returns only enablement and window metadata. Use --json for a text body and response metadata envelope.

Usage

polymorfa analytics metrics [flags]

Examples

polymorfa analytics metrics --project PROJECT_ID > analytics.prom
polymorfa analytics metrics --window-hours 24 --segments --format openmetrics

Flags

  • --format <value>takes a value

    Metrics representation.

    Allowed valuesprometheusopenmetrics
    Default prometheus
  • --segmentsboolean

    Include bounded metadata category breakdowns.

  • --session-id <value>takes a value

    Limit to one number record UUID.

  • --window-hours <value>takes a value

    Completed UTC hours to measure.

    Default 24

Also accepts the global flags.