18+ Only  |  Gambling can be addictive — please gamble responsibly  |  Gambling Help: 1800 858 858  |  GambleAware

API reference / Account

PUT /v1/link-templates

Store your bookmaker link templates

Store how every bookmaker link in your racing responses should be built. A FULL replacement: send the whole document each time. Once stored, every racing response that carries a bookmaker URL also carries a ready-made twin built through your templates: `source_link` beside `source_url` (next-to-go legs, best-odds quotes, markets), `betslip_win_link` / `betslip_place_link` beside the betslip URLs (next-to-go, changes) and `betslip_link` beside `betslip_url` (best-odds). Put the `*_link` value on your page. A twin is absent where there is nothing to link: the book gave no URL, or your rule for that book is "none". The `*_url` fields are unchanged. The document: - `mode`: what a book without its own rule gets. `"source"` (default) links straight to the bookmaker's URL, `"template"` sends it through `template`, `"none"` gives no link. - `template`: your tracking link with `{url}` where the bookmaker's URL goes (percent-encoded), or `{url_raw}` to insert it unencoded. Must start `https://`. Required when `mode` is `"template"`. - `per_bookmaker`: a rule per bookmaker key (`ladbrokes_au`, `unibet`, `tab`, ...): a template, `"source"` or `"none"`. It beats `mode`. An unknown key is refused, so a typo cannot silently drop a book's link. We append nothing of our own to any link. Whether a bookmaker's affiliate programme credits a click, and whether it accepts a deep-link destination at all, is between you and that programme. Prices shown to your users still need the visible "Prices by PuntersEdge" credit your plan's licence requires (Terms 8.1 and 8.3); Platform's white-label widget is the version without it. Takes effect on your next request. Primary key only. Step-by-step guide with curl, Python and JavaScript examples: https://puntersedge.online/developers/affiliate-links

Requires X-API-Key 0 credits

Request

curl -X PUT 'https://api.puntersedge.online/v1/link-templates' \
  -H 'X-API-Key: YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"mode": "source", "per_bookmaker": {"ladbrokes_au": "https://track.example/click?aff=123&dest={url}", "unibet": "https://other-tracker.example/?pid=9&url={url}", "playup": "none"}}'

Parameters

NameIn TypeRequired Description
body body object yes The whole JSON request body.

Responses

Status codes: 200, 401, 402, 403, 422, 429, 500, 503. Response bodies are JSON; the full schema is in /openapi.json.

Example response

200 application/json — this call costs 0 credits. Field names and types are as the API returns them; values are a real sample, trimmed to a few items.

{
  "links": {
    "mode": "source",
    "per_bookmaker": {
      "ladbrokes_au": "https://track.example/click?aff=123&dest={url}",
      "playup": "none"
    }
  },
  "updated_at": "2026-10-14T01:12:05Z",
  "fields": {
    "source_url": "source_link",
    "betslip_win_url": "betslip_win_link",
    "betslip_place_url": "betslip_place_link",
    "betslip_url": "betslip_link"
  },
  "endpoints": [
    "/v1/racing/next-to-go",
    "/v1/racing/best-odds",
    "/v1/racing/markets",
    "/v1/racing/changes"
  ],
  "preview": [
    {
      "bookmaker": "ladbrokes_au",
      "source_url": "https://www.bookmaker.example/racing/race/1",
      "source_link": "https://track.example/click?aff=123&dest=https%3A%2F%2Fwww.bookmaker.example%2Fracing%2Frace%2F1"
    },
    {
      "bookmaker": "playup",
      "source_url": "https://www.bookmaker.example/racing/race/1",
      "source_link": null
    },
    {
      "bookmaker": "(every other book)",
      "source_url": "https://www.bookmaker.example/racing/race/1",
      "source_link": "https://www.bookmaker.example/racing/race/1"
    }
  ]
}

Related endpoints

Try it against live data

The free tier needs no credit card, and the sandbox endpoints need no key at all.

Get a free API key Quickstart
This site contains wagering-related analysis and is intended for Australian users aged 18+. Gambling involves risk. Please gamble responsibly.