auth

Record how this account first arrived (first touch)

Session + CSRF required. The console posts the utm_* parameters and Google click id (gclid, gbraid, wbraid) the visitor first arrived with, once, after the account exists. Write-once: the first post wins and later posts return recorded: false. Accepted only within 24 hours of the account being created, so a later ad click never rewrites how an existing account came to us.

post/v1/auth/attribution

Request

  • Base URL: https://api.hyperresearch.ai
  • URL: https://api.hyperresearch.ai/v1/auth/attribution
  • Auth: API key in cookie hr_session

Request body

utm_sourcestring nullable
utm_mediumstring nullable
utm_campaignstring nullable
utm_termstring nullable
utm_contentstring nullable
gclidstring nullable
gbraidstring nullable
wbraidstring nullable
landing_pathstring nullable
first_seen_atstring nullable

Response

What was stored

recordedboolean required
reason'already_recorded' | 'account_too_old' | 'nothing_to_record'

Changes

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