Demo docs: examples are illustrative.
Referral API

Program

Fetch a program by ID.

QUERYprogram(id: ID!): Program

Fetch a program by ID.

Arguments

id*ID!

Returns

  1. program

A referral program and its settings.

id*ID!
name*String!
currency*String!
holdDays*Int!

Days a reward is held before it unlocks.

performance*

Performance over a date range.

topReferrers*

Referrers ranked by converted referrals.

Weekly performance for the last quarter.

query QuarterPerformance($id: ID!, $range: DateRange!) {  program(id: $id) {    name    performance(range: $range, interval: WEEK) {      start      signups      conversions      conversionRate    }  }}
Variables
{  "id": "prog_8Hq2LmN4",  "range": {    "from": "2026-07-01T00:00:00Z",    "to": "2026-09-30T23:59:59Z"  }}
Example Response
{  "data": {    "program": {      "name": "string",      "performance": [        {          "start": "<DateTime>",          "signups": 10,          "conversions": 10,          "conversionRate": 10.5        }      ]    }  }}