API v1 · Webhooks are live

VoxLinker Developer Docs

Create tracked affiliate links, read clicks, conversions, earnings and balance, and receive signed webhooks, all from your own website, app or scripts.

Links

Create tracked affiliate links for any supported brand and read their clicks and conversions.

Create a link

Webhooks

Get a signed request on your server the moment a conversion lands or a payout is sent.

Set up webhooks

Brand postbacks

Brands report sales server-to-server with the click ID. Retries never create duplicates.

Send a postback

Make your first request

Create 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.

  • JSON in, JSON out, over HTTPS
  • 120 requests per minute per token
  • Typed errors and cursor pagination

Prefer a spec? Import the OpenAPI 3.1 file into Postman or Insomnia.

Create your first link
curl https://voxlinker.com/api/v1/links \
  -H "Authorization: Bearer $VOXLINKER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://nordvpn.com/pricing"}'

Reference

API reference

Introduction

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.

Base URL
https://voxlinker.com/api/v1

The 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.

Authentication

Authenticate with an API token sent in the Authorization header as a Bearer token. Create and revoke tokens in Settings → Apps & API.

Request header
Authorization: Bearer vxl_live_your_token_here
  • Tokens start with vxl_live_ and are shown only once, when you create them.
  • We store only a hash of each token. If you lose one, revoke it and create a new one.
  • You can have up to 5 active tokens, for example one per website or integration.
  • Each token is either read only (all GET endpoints) or read & write (also creates links). Use read-only tokens for dashboards and reports.
  • Every request is listed in the request log under Settings → Apps & API for 30 days (method, path, status and timing only).
  • Keep tokens on your server. Never put them in browser JavaScript or a mobile app bundle.

Rate limits

Each token can make 120 requests per minute. Every response includes your current allowance:

X-RateLimit-Limit: 120
X-RateLimit-Remaining: 117

When you exceed the limit you receive 429 with a Retry-After header in seconds. Back off and retry after that time.

Errors

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.

Example error
{
  "error": {
    "type": "not_found",
    "message": "This retailer is not supported yet.",
    "code": "NOT_SUPPORTED"
  }
}
ParameterTypeDescription
400 invalid_requestA parameter is missing or has the wrong format.
401 unauthorizedThe token is missing, malformed or revoked.
403 forbiddenThe 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_foundThe resource doesn't exist, or the retailer isn't supported (NOT_SUPPORTED).
409 conflictThe brand is temporarily unavailable for new links (BRAND_UNAVAILABLE).
429 rate_limitedToo many requests. See Rate limits.
500 server_errorSomething went wrong on our side. Retry with backoff.

Pagination

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.

List response shape
{
  "object": "list",
  "data": [ ... ],
  "has_more": true,
  "next_cursor": 18234
}

Account

Returns the publisher account that owns the token. Useful to confirm a token works.

GET/api/v1/me
curl
curl https://voxlinker.com/api/v1/me \
  -H "Authorization: Bearer $VOXLINKER_TOKEN"
Response · 200
{
  "object": "account",
  "publisher_id": "PUB-3F9A21C7",
  "email": "you@example.com",
  "name": "Sara Lane"
}

Brand lookup

Checks whether a product page belongs to a supported retailer and returns its commission, without creating a link.

GET/api/v1/brands/lookup?url={product_url}
ParameterTypeDescription
urlstring, requiredThe full product page URL, URL-encoded.
Response · 200
{
  "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.

Conversions

Lists sales and leads credited to your links, newest first.

GET/api/v1/conversions
ParameterTypeDescription
statusstringpending, approved or rejected.
from, todateFilter by creation date, e.g. 2026-11-01. Both inclusive (UTC).
link_idstringOnly conversions from this link.
limit, starting_afterPagination, see above.
Response · 200
{
  "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.

Stats

Totals and a daily series for a date range (UTC days). Defaults to the last 30 days; the maximum range is 366 days.

GET/api/v1/stats?from=2026-11-01&to=2026-11-15
Response · 200
{
  "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.

Balance

GET/api/v1/balance
Response · 200
{
  "object": "balance",
  "currency": "USD",
  "available": 240.5,
  "pending": 512.4,
  "processing": 0,
  "total_earned": 1890.75,
  "withdrawn": 1137.85
}

Webhooks

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.

  • Endpoints must be public HTTPS URLs (port 443 or 8443). Private and internal addresses are rejected.
  • Respond with any 2xx status within 10 seconds. Redirects are not followed. Do heavy work after responding.
  • Up to 5 endpoints per account. Each endpoint has its own signing secret (whsec_…), shown once; you can rotate it at any time.
Request headers
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
Body
{
  "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.

Event types

ParameterTypeDescription
conversion.createdconversionA new sale or lead was credited to one of your links.
conversion.approvedconversionA conversion passed validation and will count toward your balance.
conversion.rejectedconversionA conversion was cancelled, refunded or rejected.
withdrawal.paidwithdrawalA withdrawal was sent to your payout account.
withdrawal.failedwithdrawalA withdrawal was declined or failed; the funds are back in your balance.
link.disabledlinkOne 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.

Verifying signatures

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.

Node.js (Express)
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, ...
  }
})
Python (Flask)
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 "", 200

Retries and failures

Any 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.

  • Every delivery is stored first, so events aren't lost while your server is down. You can see each attempt, the response status and body in the delivery log, and retry any failed delivery manually.
  • After 15 failed attempts in a row, the endpoint is paused and we notify you by email. Resume it from Settings once your server is back.
  • Events can occasionally arrive more than once or out of order. Deduplicate by event id and rely on the status in data, or fetch the latest state from the API.
  • The delivery log is kept for 30 days.

Conversion postback (for brands)

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.

GEThttps://voxlinker.com/api/postback?click_id=...&order_id=...&amount=...&status=...&token=...
ParameterTypeDescription
click_idstring, requiredThe click_id received on the landing URL.
order_idstring, requiredYour unique order reference.
amountnumberSale amount, before tax and shipping.
commissionnumberOptional: the commission you're paying, if it isn't calculated from the offer.
currencystringISO code, default USD.
statusstringapproved, pending, or a cancellation word such as rejected, refunded or cancelled.
tokenstring, requiredYour postback secret, provided by the VoxLinker team.
  • Both GET and POST are accepted. Sending the same order again updates it instead of creating a duplicate, so it's safe to retry.
  • To cancel or refund an order, send it again with status=rejected.
  • Impact-style parameters (subId1, orderId, saleAmount, actionStatus) are also supported.
Response · 200
{ "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.

Extension endpoints

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.

Changelog

ParameterTypeDescription
2026-11-16v1Webhooks (6 event types, signed, with retries and delivery log), read-only tokens, request log and an OpenAPI 3.1 spec.
2026-11-16v1First public release: tokens, links, conversions, stats, balance and brand lookup.