List Widget Referrals

GET
/v1/widget/referrals

The referrals where the participant that the Widget token names is the referrer, in one referral Program of the Project of the token, newest first. The token needs the widget:read scope. A participant that the Project does not have gets an empty list; the route creates no participant. A Program of another Project, or an affiliate or loyalty Program, gets 404 NOT_FOUND; a cursor that is not valid gets 400 INVALID_REQUEST. The response is not cached (Cache-Control: private, no-store).

Authorization

WidgetJWT
AuthorizationBearer <token>

HS256 with typ refref-widget+jwt, iss and projectId equal to Project ID, aud refref-widget, sub the external ID of the participant, participantKind its kind (individual or group), mandatory iat and exp, lifetime at most 900 seconds. scope lists one or more Widget scopes separated by one space; widget:read gives Widget init and the payout details read, and widget:payout gives the payout details save, for example "widget:read widget:payout". A token without the scope of an operation gets 403. Signed by the Project backend with its secret.

In: header

Query Parameters

projectId*string
Match\S
Length1 <= length <= 512
programId*string
Match\S
Length1 <= length <= 512
cursor?string
Length1 <= length <= 2048
limit?integer
Range1 <= value <= 50
Default20

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/widget/referrals?projectId=string&programId=string"
{  "items": [    {      "id": "string",      "date": "string",      "label": "string",      "status": "joined",      "rewardCount": 0    }  ],  "nextCursor": "string"}