API reference

API reference · Account

This account's referral code, link and results

GET/api/account/referralSigned in session

A link `/?ref=<code>` on any page is remembered by the browser and attached at the sign in that creates an account, never later and never to the same wallet. When that account's first qualifying deposit is claimed, the referee gets ANTIMATTER_REFERRAL_REWARD_MICROS and the referrer ANTIMATTER_REFERRAL_REFERRER_MICROS as credit, once. Off unless either is set, and then the answer is `{ enabled: false }` alone and no code is drawn.

Answer 200

The program and this account's place in it.

Fields of the 200 answer
FieldTypeWhat it is
enabledrequiredbooleanFalse unless the deployment set a referral reward.
codestringEight symbols, random, stable for the account.
linkstringThe link on this deployment's public origin.
refereeRewardMicrosintegerCredit the referred account gets; 0 for none.
referrerRewardMicrosintegerCredit this account gets per referral; 0 for none.
minDepositMicrosintegerThe smallest claim that qualifies; 0 for any.
maxRewardedReferralsinteger or nullHow many referrals may pay one wallet, ever.
signedUpintegerAccounts created through this account's link.
qualifiedintegerOf those, how many made a qualifying deposit.
rewardedReferralsintegerReferrals that paid this wallet, across its accounts.
capReachedboolean
earnedMicrosintegerEvery referral credit on this account's ledger.
welcomePendingbooleanThis account came through a link and its reward waits on a qualifying deposit.

Errors

  • 401OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter