Demo docs: examples are illustrative.
Referral API

Export Report

Generate a CSV of performance data and return a download link.

MUTATIONexportReport(programId: ID!, range: DateRange!): ReportExport!

Generate a CSV of performance data and return a download link.

Arguments

programId*ID!
range*

A date range. Both ends are inclusive.

Returns

  1. exportReport

A saved report export.

id*ID!
url*String!

Signed download link, valid for one hour.

expiresAt*DateTime!

An ISO-8601 encoded date time string.

Example Request
mutation ExportReport($programId: ID!, $range: DateRange!) {  exportReport(programId: $programId, range: $range) {    id    url    expiresAt  }}
Variables
{  "programId": "1",  "range": {    "from": "<DateTime>",    "to": "<DateTime>"  }}
Example Response
{  "data": {    "exportReport": {      "id": "1",      "url": "string",      "expiresAt": "<DateTime>"    }  }}