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
X-API-Key
0 credits
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"}}'
| Name | In | Type | Required | Description |
|---|---|---|---|---|
body |
body | object | yes | The whole JSON request body. |
Status codes: 200, 401, 402, 403, 422, 429, 500, 503. Response bodies are JSON; the full schema is in /openapi.json.
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"
}
]
}
GET /v1/account — Your account: email, plan, password, billing and consent statusGET /v1/account/events — Your account's change historyGET /v1/account/insights — Usage, request health, projection and upgrade advicePOST /v1/account/marketing — Turn promotional emails on or off for your accountGET /v1/account/onboarding — Your onboarding checklistPUT /v1/account/onboarding — Choose your onboarding use casePOST /v1/account/password — Set or change your account passwordGET /v1/account/samples/{kind} — A labelled sample of a plan-gated endpoint's responseThe free tier needs no credit card, and the sandbox endpoints need no key at all.
Get a free API key Quickstart