GET
/
api
/
v1
/
user
/
referrals
Get user's referral status
const url = 'https://api.gnosispay.com/api/v1/user/referrals';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "isOgTokenHolder": true,
  "pendingReferrals": 2,
  "completedReferrals": 5
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json

Successfully retrieved referral status

The response is of type object.