NodiRef LogoNodiRef
V1/Code

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

{
    "tracking_id": "tracking_id"
}
GET/v1/{code}/hit

Authorization

AuthorizationRequired<token>

In: header

Path Parameters

codeRequiredstring

This 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"
}