GET
/
links
Get all affiliate links or by ID/link/affiliate
curl --request GET \
  --url https://www.pushlapgrowth.com/api/v1/links \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "link": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "affiliate": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "email": "jsmith@example.com"
    },
    "program": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "currency": "<string>"
    },
    "clicks": 123,
    "referrals": 123,
    "sales": 123,
    "totalRevenue": 123,
    "fullURLs": [
      {
        "baseUrl": "<string>",
        "fullUrl": "<string>"
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
string<uuid>

The ID of the affiliate link to retrieve

The link string of the affiliate link to retrieve

affiliateId
string<uuid>

The affiliate ID to get links for

affiliateEmail
string<email>

The email of the affiliate to get links for

Response

A list of affiliate links or a single affiliate link

id
string<uuid>

The affiliate link ID

The affiliate link string

createdAt
string<date-time>

Timestamp when the affiliate link was created

updatedAt
string<date-time>

Timestamp when the affiliate link was last updated

affiliate
object
program
object
clicks
integer

Number of clicks on this affiliate link

referrals
integer

Number of referrals generated by this link

sales
integer

Number of sales generated by this link

totalRevenue
number

Total revenue generated by this link

fullURLs
object[]

Array of full URLs for this affiliate link