Skip to main content
POST
/
affiliate_links
Create an affiliate link
curl --request POST \
  --url https://api.referralful.com/v1/affiliate_links \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "affiliate_id": "<string>",
  "token": "<string>"
}
'
{
  "id": "<string>",
  "object": "affiliate_link",
  "url": "<string>",
  "token": "<string>",
  "visitors": 123,
  "leads": 123,
  "conversions": 123,
  "affiliate_id": "<string>"
}

Authorizations

Authorization
string
header
required

Use your API secret as the username, with an empty password.

Body

application/json
affiliate_id
string
required
token
string

Response

201 - application/json

Created

id
string
object
string
Example:

"affiliate_link"

url
string
token
string
visitors
integer
leads
integer
conversions
integer
affiliate_id
string