Skip to main content
POST
/
v1
/
track
/
click
Track a click
curl --request POST \
  --url https://go.affixo.dev/v1/track/click \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ref": "jane",
  "visitor_id": "<string>",
  "fingerprint": "<string>",
  "url": "<string>",
  "referrer": "<string>"
}
'
{
  "ok": true,
  "visitor_id": "<string>",
  "match_method": "cookie",
  "match_confidence": 1
}

Authorizations

Authorization
string
header
required

Workspace API key, e.g. sa_live_…. Scopes: read / write / track / *.

Body

application/json
ref
string
required

Referral code / ref_param.

Example:

"jane"

visitor_id
string | null
fingerprint
string | null
url
string<uri> | null
referrer
string | null

Response

Click recorded

ok
boolean
Example:

true

visitor_id
string
match_method
string
Example:

"cookie"

match_confidence
number<float>
Example:

1