growsurf_get_participant_analytics
Fetch analytics for a single GrowSurf participant by ID or email, including engagement, rank, share, and affiliate revenue. Optionally include activation milestones and time-series data.
Instructions
Fetch analytics for one participant by GrowSurf participant ID or email. The base response includes all-time engagement, rank, share, and applicable affiliate revenue, commission, and payout metrics. Add activation to include for the program-specific eligibility anchor and covered first milestones, including firstPortalViewedAt and firstShareChannel. A null milestone with a partial or unavailable state is unknown, not proof that the action never happened. Request both activation and series for covered portalViews and shareActions buckets. Date-window parameters filter optional series and email data, not the base response or activation milestones. Targets campaignId if passed, otherwise GROWSURF_CAMPAIGN_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days for optional `series` and `email` analytics. Does not filter the all-time base response. | |
| endDate | No | End of the optional-data timeframe, Unix timestamp in ms. Use with `startDate`. | |
| include | No | Comma-separated optional data. Current values are `series`, `email`, and `activation`; the API returns `400` for unknown values. | |
| interval | No | Bucket size for `series` and email series. Defaults to `day`. | |
| startDate | No | Start of the optional-data timeframe, Unix timestamp in ms. Use with `endDate` instead of `days`. | |
| campaignId | No | Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Pass the `id` returned by growsurf_create_campaign to configure or operate a program you just created, without restarting the server. | |
| participantId | No | ||
| participantEmail | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Sent, delivered, opened, clicked, bounced, and spam complaint metrics for program emails in the requested window. | ||
| ranks | No | Leaderboard ranks for this participant. | |
| series | No | This participant's per-period activity. Present when `include` contains `series`. | |
| endDate | No | Window end (Unix ms). Present with `series` or `email`. | |
| analytics | No | All-time participant analytics totals. Date-window parameters do not filter these fields. | |
| startDate | No | Window start (Unix ms). Present with `series` or `email`. | |
| activation | No | Opt-in covered eligibility and first-milestone analytics for one participant. | |
| shareCount | No | Per-channel share counts (e.g. `email`, `facebook`, `twitter`). |