referrals

Track Referral Click

Track a referral link click. Called when a visitor lands on /r/{code}. Creates a referral record with status clicked.

post/referrals/track

Request

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

Request body

referralCodestring required

Referral code from the /r/{code} link (7-char short code, or a legacy raw user ID for backward compatibility)

Example request

{
  "referralCode": "K7M2QPX"
}

Response

Referral click tracked

successtrue required

Example response

{
  "data": {
    "status": "clicked"
  },
  "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.