post
https://production-api.shoutaboutus.com/api/v1/referral/click
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
| Field | Type | Required | Notes |
|---|---|---|---|
code | string | Required | Must be an existing referral code. The referral code that was clicked. |
ip | string | Optional | Client IP recorded against the click for attribution/dedup. |
Behaviour
200—{ data: { status, message, company } };companyis{ id, name, bundle_id }of the referring company (ornull).422—codemissing or not found inreferral_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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
