Create tracked affiliate links, read clicks, conversions, earnings and balance, and receive signed webhooks, all from your own website, app or scripts.
Create tracked affiliate links for any supported brand and read their clicks and conversions.
Create a linkGet a signed request on your server the moment a conversion lands or a payout is sent.
Set up webhooksBrands report sales server-to-server with the click ID. Retries never create duplicates.
Send a postbackCreate a token in Settings → Apps & API, keep it in an environment variable, and send it as a Bearer token. The response is the new link, ready to share.
Prefer a spec? Import the OpenAPI 3.1 file into Postman or Insomnia.
curl https://voxlinker.com/api/v1/links \
-H "Authorization: Bearer $VOXLINKER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"url":"https://nordvpn.com/pricing"}'Reference
The VoxLinker API is organised around REST. It uses predictable resource URLs, accepts JSON request bodies, returns JSON responses and uses standard HTTP status codes. All requests must use HTTPS.
https://voxlinker.com/api/v1The API is available to approved publisher accounts. Amounts are in US dollars and dates are ISO 8601 in UTC.
A machine-readable OpenAPI 3.1 specification is available for Postman, Insomnia and code generators.
Authenticate with an API token sent in the Authorization header as a Bearer token. Create and revoke tokens in Settings → Apps & API.
Authorization: Bearer vxl_live_your_token_herevxl_live_ and are shown only once, when you create them.Each token can make 120 requests per minute. Every response includes your current allowance:
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 117When you exceed the limit you receive 429 with a Retry-After header in seconds. Back off and retry after that time.
Errors return a non-2xx status and a JSON body with a machine-readable type, a human-readable message and, where useful, a specific code.
{
"error": {
"type": "not_found",
"message": "This retailer is not supported yet.",
"code": "NOT_SUPPORTED"
}
}| Parameter | Type | Description |
|---|---|---|
| 400 invalid_request | A parameter is missing or has the wrong format. | |
| 401 unauthorized | The token is missing, malformed or revoked. | |
| 403 forbidden | The account isn't active (ACCOUNT_INACTIVE), the token belongs to a brand account (PUBLISHERS_ONLY), the token lacks the required scope (INSUFFICIENT_SCOPE), or the link was disabled (LINK_DISABLED). | |
| 404 not_found | The resource doesn't exist, or the retailer isn't supported (NOT_SUPPORTED). | |
| 409 conflict | The brand is temporarily unavailable for new links (BRAND_UNAVAILABLE). | |
| 429 rate_limited | Too many requests. See Rate limits. | |
| 500 server_error | Something went wrong on our side. Retry with backoff. |
List endpoints return newest items first and use cursor pagination. Pass limit (1 to 100, default 25) and, for the next page, starting_after set to the next_cursor from the previous response.
{
"object": "list",
"data": [ ... ],
"has_more": true,
"next_cursor": 18234
}Returns the publisher account that owns the token. Useful to confirm a token works.
/api/v1/mecurl https://voxlinker.com/api/v1/me \
-H "Authorization: Bearer $VOXLINKER_TOKEN"{
"object": "account",
"publisher_id": "PUB-3F9A21C7",
"email": "you@example.com",
"name": "Sara Lane"
}Checks whether a product page belongs to a supported retailer and returns its commission, without creating a link.
/api/v1/brands/lookup?url={product_url}| Parameter | Type | Description |
|---|---|---|
| url | string, required | The full product page URL, URL-encoded. |
{
"object": "brand_lookup",
"supported": true,
"available": true,
"brand": {
"name": "Example Store",
"logo_url": "https://...",
"commission": { "type": "percentage", "value": 6, "max": null }
}
}Unsupported pages return { "supported": false, "brand": null } with status 200.
Creates a tracked affiliate link for a product page. If you already have an active link for the same page with the same labels, that link is returned instead of a duplicate (status 200 and "created": false).
/api/v1/linksWhen the store blocks automatic reading, the link is still created and the response includes a warnings array. Add a picture later with PATCH /api/v1/links/{id} and a JSON body such as { "image_url": "https://..." } (scope: write).
| Parameter | Type | Description |
|---|---|---|
| url | string, required | Product page URL on a supported retailer. |
| title | string | Optional product name (max 300 characters). If omitted, it is read from the product page or its URL. |
| image_url | string | Optional product picture (https). If omitted, VoxLinker reads it from the product page when the store allows it; the picture is copied to our image host. |
| enrich | boolean | Set to false to skip reading the product page (faster). Default true. |
| campaign | string | Optional campaign label to group links in reports. |
| sub1, sub2, sub3 | string | Optional tracking labels passed with each click, e.g. the post or placement. Letters, numbers, dots, dashes and underscores, max 64. |
curl -X POST https://voxlinker.com/api/v1/links \
-H "Authorization: Bearer $VOXLINKER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.example-store.com/product/12345",
"campaign": "spring_guide",
"sub1": "blog_sidebar"
}'{
"id": "Xk29aQb1",
"object": "link",
"url": "https://voxlinker.com/go/example-store-Xk29aQb1",
"track_url": "https://voxlinker.com/api/track/Xk29aQb1",
"destination_url": "https://www.example-store.com/product/12345",
"title": "Example Store",
"image_url": "https://...",
"brand": { "name": "Example Store", "logo_url": "https://..." },
"campaign": "spring_guide",
"sub1": "blog_sidebar",
"sub2": null,
"sub3": null,
"clicks": 0,
"conversions": 0,
"active": true,
"created_at": "2026-11-16T10:30:00.000Z",
"created": true
}Share url with your audience. You can also add ?sub1=... to it at click time; values in the URL take priority over the ones saved on the link.
const res = await fetch("https://voxlinker.com/api/v1/links", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VOXLINKER_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ url: productUrl, sub1: "newsletter" }),
})
if (!res.ok) throw new Error((await res.json()).error.message)
const link = await res.json()
console.log(link.url)import os, requests
res = requests.post(
"https://voxlinker.com/api/v1/links",
headers={"Authorization": f"Bearer {os.environ['VOXLINKER_TOKEN']}"},
json={"url": product_url, "sub1": "newsletter"},
timeout=10,
)
res.raise_for_status()
print(res.json()["url"])/api/v1/links| Parameter | Type | Description |
|---|---|---|
| limit | integer | 1 to 100, default 25. |
| starting_after | integer | Cursor from the previous page's next_cursor. |
| campaign | string | Only links with this campaign label. |
Returns a list of link objects (same shape as above), each with a cursor field.
/api/v1/links/{id}Returns one link by its id, including lifetime clicks and conversions. Links that belong to other accounts return 404.
Lists sales and leads credited to your links, newest first.
/api/v1/conversions| Parameter | Type | Description |
|---|---|---|
| status | string | pending, approved or rejected. |
| from, to | date | Filter by creation date, e.g. 2026-11-01. Both inclusive (UTC). |
| link_id | string | Only conversions from this link. |
| limit, starting_after | Pagination, see above. |
{
"object": "list",
"data": [
{
"id": 18234,
"object": "conversion",
"order_id": "A-100293",
"status": "pending",
"sale_amount": 129.9,
"commission": 6.24,
"currency": "USD",
"link_id": "Xk29aQb1",
"brand": "Example Store",
"created_at": "2026-11-15T18:02:11.000Z",
"approved_at": null,
"rejected_at": null,
"available_at": null
}
],
"has_more": false,
"next_cursor": null
}commission is your earning on the sale. Pending conversions can still be approved or rejected during the brand's validation period. Learn more in how affiliate payouts work.
Totals and a daily series for a date range (UTC days). Defaults to the last 30 days; the maximum range is 366 days.
/api/v1/stats?from=2026-11-01&to=2026-11-15{
"object": "stats",
"from": "2026-11-01T00:00:00.000Z",
"to": "2026-11-15T23:59:59.999Z",
"currency": "USD",
"totals": {
"clicks": 4210,
"conversions": 96,
"earnings": 512.4,
"sale_amount": 8540.1,
"conversion_rate": 2.28,
"epc": 0.12
},
"daily": [
{ "date": "2026-11-01", "clicks": 251, "conversions": 6, "earnings": 31.2, "sale_amount": 520.0 }
]
}Clicks exclude bots and blocked traffic. Conversions and earnings include pending and approved sales, matching your dashboard.
/api/v1/balance{
"object": "balance",
"currency": "USD",
"available": 240.5,
"pending": 512.4,
"processing": 0,
"total_earned": 1890.75,
"withdrawn": 1137.85
}Webhooks send a signed HTTPS POST to your server the moment something happens in your account, so you don't have to poll the API. Add endpoints and choose events in Settings → Apps & API, where you can also send a test event and see every delivery.
whsec_…), shown once; you can rotate it at any time.POST /webhooks/voxlinker HTTP/1.1
Content-Type: application/json
User-Agent: VoxLinker-Webhooks/1.0
VoxLinker-Event: conversion.created
VoxLinker-Event-Id: evt_3f9a21c7d0b84e11a2c3d4e5
VoxLinker-Delivery: 5012
VoxLinker-Signature: t=1763290211,v1=5b2c…e91f{
"id": "evt_3f9a21c7d0b84e11a2c3d4e5",
"object": "event",
"type": "conversion.created",
"api_version": "v1",
"created_at": "2026-11-16T10:30:11.000Z",
"data": {
"id": 18234,
"object": "conversion",
"order_id": "A-100293",
"status": "pending",
"sale_amount": 129.9,
"commission": 6.24,
"currency": "USD",
"link_id": "Xk29aQb1",
"brand": "Example Store",
"created_at": "2026-11-16T10:30:10.000Z",
"approved_at": null,
"rejected_at": null,
"available_at": null
}
}Use the event id to ignore duplicates: retries resend the same id, so processing each id once makes your handler safe.
| Parameter | Type | Description |
|---|---|---|
| conversion.created | conversion | A new sale or lead was credited to one of your links. |
| conversion.approved | conversion | A conversion passed validation and will count toward your balance. |
| conversion.rejected | conversion | A conversion was cancelled, refunded or rejected. |
| withdrawal.paid | withdrawal | A withdrawal was sent to your payout account. |
| withdrawal.failed | withdrawal | A withdrawal was declined or failed; the funds are back in your balance. |
| link.disabled | link | One of your links was disabled by the VoxLinker team. |
The data object has the same shape as the matching API resource: conversions as in Conversions, links as in Create a link. Withdrawals include id, status, amount, net_amount, failure_reason and timestamps. A webhook.test event is sent when you click Send test.
Every request is signed with your endpoint's secret. The VoxLinker-Signature header contains a Unix timestamp t and v1, the hex HMAC-SHA256 of {t}.{raw body}. Compute it yourself, compare in constant time, and reject timestamps older than 5 minutes to stop replays. Always use the raw request body, before any JSON parsing.
import crypto from "node:crypto"
import express from "express"
const app = express()
const SECRET = process.env.VOXLINKER_WEBHOOK_SECRET
app.post("/webhooks/voxlinker", express.raw({ type: "application/json" }), (req, res) => {
const header = req.get("VoxLinker-Signature") ?? ""
const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")))
const expected = crypto.createHmac("sha256", SECRET).update(`${t}.${req.body}`).digest("hex")
const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300
const valid = v1 && expected.length === v1.length &&
crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1))
if (!fresh || !valid) return res.status(400).send("Invalid signature")
const event = JSON.parse(req.body)
res.sendStatus(200) // acknowledge first, then do the work
if (event.type === "conversion.created") {
// notify yourself, update your records, ...
}
})import hmac, hashlib, os, time, json
from flask import Flask, request, abort
app = Flask(__name__)
SECRET = os.environ["VOXLINKER_WEBHOOK_SECRET"].encode()
@app.post("/webhooks/voxlinker")
def voxlinker_webhook():
raw = request.get_data() # raw bytes, before parsing
parts = dict(p.split("=", 1) for p in request.headers.get("VoxLinker-Signature", "").split(","))
t, v1 = parts.get("t", "0"), parts.get("v1", "")
expected = hmac.new(SECRET, f"{t}.".encode() + raw, hashlib.sha256).hexdigest()
if abs(time.time() - int(t)) > 300 or not hmac.compare_digest(expected, v1):
abort(400)
event = json.loads(raw)
# handle event["type"] ...
return "", 200Any response other than 2xx within 10 seconds counts as a failure, and the delivery is retried with increasing delays: about 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours, for up to 8 attempts in total.
id and rely on the status in data, or fetch the latest state from the API.Brands and networks report sales to VoxLinker with a server-to-server postback. When a shopper arrives from a VoxLinker link, the landing URL carries a click_id parameter. Store it with the order and send it back when the order is placed, approved or cancelled.
https://voxlinker.com/api/postback?click_id=...&order_id=...&amount=...&status=...&token=...| Parameter | Type | Description |
|---|---|---|
| click_id | string, required | The click_id received on the landing URL. |
| order_id | string, required | Your unique order reference. |
| amount | number | Sale amount, before tax and shipping. |
| commission | number | Optional: the commission you're paying, if it isn't calculated from the offer. |
| currency | string | ISO code, default USD. |
| status | string | approved, pending, or a cancellation word such as rejected, refunded or cancelled. |
| token | string, required | Your postback secret, provided by the VoxLinker team. |
status=rejected.subId1, orderId, saleAmount, actionStatus) are also supported.{ "success": true, "action": "CREATED", "conversionId": 18234, "status": "PENDING" }Error responses: 400 invalid amount, 403 invalid token, 404 unknown click, 409 the order already belongs to another click. Want to set up postbacks? Contact us to receive your secret.
The VoxLinker browser extension uses a separate, older set of endpoints under /api/public that authenticate with your Publisher ID and extension key in the request body. They remain supported for the extension, but new integrations should use the v1 API above.
| Parameter | Type | Description |
|---|---|---|
| 2026-11-16 | v1 | Webhooks (6 event types, signed, with retries and delivery log), read-only tokens, request log and an OpenAPI 3.1 spec. |
| 2026-11-16 | v1 | First public release: tokens, links, conversions, stats, balance and brand lookup. |