catalog

Record that a user was referred by you [write]

Changed on

Records that the target user was brought to the platform by the caller. A user can have at most one referral source; a second call for the same target is a no-op (200, recorded: false). 404 when the payout tables are not yet migrated.

post/seller/referrals

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/seller/referrals
  • Auth
    HTTP bearer

Request body

referred_user_idstring required

The id of the user who was referred

Response

OK

recordedboolean required

true when this call created the referral row; false when it already existed

Changes