referrals

Convert Referral

Convert a referral after signup. Called by frontend if localStorage has a referral_code. Links the new user to the referral record.

post/referrals/convert

Request

  • Base URL: https://api.aiapplyd.com/api/v1
  • URL: https://api.aiapplyd.com/api/v1/referrals/convert
  • Auth: HTTP bearer

Request body

referralCodestring required

Referral code from localStorage, set during /r/{code} redirect (7-char short code, or a legacy raw user ID for backward compatibility)

Example request

{
  "referralCode": "K7M2QPX"
}

Response

Referral converted successfully

successtrue required

Example response

{
  "meta": {
    "duration": 150,
    "requestId": "req_abc123",
    "timestamp": "2026-10-13T10:27:20.268Z",
    "version": "v1"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.