Track referral link click (PUBLIC)

Public attribution endpoint: records a click on a referral link identified by its referral code and increments that code's total_click counter. Called by the SPA/landing page before login. Returns the referring company's public identity so the sign-up flow can pre-attribute the lead.

Auth

  • Public — no auth. Lives in the pre-login reference group.

Rate limit

  • 100 requests/min per IP.

Body

FieldTypeRequiredNotes
codestringRequiredMust be an existing referral code. The referral code that was clicked.
ipstringOptionalClient IP recorded against the click for attribution/dedup.

Behaviour

  • 200{ data: { status, message, company } }; company is { id, name, bundle_id } of the referring company (or null).
  • 422code missing or not found in referral_codes.
  • 400{ status: error } if the click row fails to persist ('Something went wrong! Please try again.').
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json