Agara

Look up a referral code

GET/api/v1/rewards/referral-codes/{code}

The trader who shares a referral code, with the same name, avatar and address the leaderboard shows. A trader with a private profile is not named, and the code is still found. Letter case is ignored and the code comes back as it was issued. Looking a code up does not use it: send it as referral_code when the account is registered. Public, no authentication required; a found code is cached for up to 60 seconds.

Path Parameters

code*string

Referral code of five letters or digits, in any letter case (e.g. A5he8).

Response Body

application/json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/v1/rewards/referral-codes/string"
{  "code": "string",  "inviter": {    "address": "string",    "display_name": "string",    "avatar_url": "string",    "private": true  }}