Register Click
Register Click
Use this endpoint to register a click and get a tracking ID for a user that clicked on a link, this value is recommended to save it in a Cookie, in order to send it over when (if) the user signs up, in order to create the Referral.
Note: If you are using our SDKs for the front-end, we automatically manage the persistance of the tracking_id
.
Response Body
GET
/v1/{code}/hit
Authorization
Authorization
Required<token>In: header
Path Parameters
code
RequiredstringThis is the code of the Partner which is shared in the link under the ?ref
parameter
Response Body
OK
TypeScript Definitions
Use the response body type in TypeScript.
curl -X GET "https://api.nodiref.com/v1/prv240CUiU/hit" \
-H "Authorization: <token>"
{
"tracking_id": "76e94ffc-d880-414c-9ed7-4eec02bf53dd"
}