NodiRef LogoNodiRef
Referral links

/referral-links

This endpoint allows you to create a new referral link by providing the necessary details.

Request Body

{
  "partner_id": "PARTNER_UUID", // Required
  "code": "UNIQUE_CODE", // Required
  "metadata": {}, // Optional
  "project_id": "PROJECT_UUID" // Optional
}

Response

The response for this request is an empty array with a 201 HTTP Code

POST/referral-links

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonOptional

Response Body

Successful response

curl -X POST "https://api.nodiref.com/referral-links" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "partner_id": "9ecebae1-5743-4698-bf24-a0ed05ee3ac7",
    "code": "abcdefg",
    "target_url": "https://google.com"
  }'
Empty