POST
/api/v2/referrals/links/{code}/clicksA visitor opened the sign-up page with a campaign code. Counted once per visitor per UTC day when VisitorId is sent (every call counts, none as unique, without it). 200 with the link's destination when counted; 204 for crawlers and previews (UserAgentHint) and for paused, expired or archived links; 404 for an unknown code. IPs are never stored.
Authentication
Send your API key in the x-api-key header on every request.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| code (path) | string | Yes |
Request body
application/json
See the interactive reference for the full body schema.
Responses
200 — OK
| Field | Type | Required | Description |
|---|---|---|---|
| LinkId | string (uuid) | Yes | |
| Code | string | Yes | |
| Destination | string | Yes | |
| Unique | boolean | Yes |
204 — No Content
Example request
curl -X POST "https://{base_url}/api/v2/referrals/links/{code}/clicks" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'This page is generated from the live OpenAPI specification and always matches the current API.