GET /
No token needed
API index. Version and links. No token needed.
Read your pools’ data from a script, a spreadsheet or a chat bot. Read-only, JSON, with a personal token.
List your pools:
curl -H "Authorization: Bearer pk_…" \
https://puckera.com/api/v1/pools
A pool’s standings:
curl -H "Authorization: Bearer pk_…" \
https://puckera.com/api/v1/pools/{pool}/standings
An error always has the same shape:
{"error": {"code": "not_found", "message": "Not found."}}
Every address starts with https://puckera.com/api/v1. The full description, with schemas, is in the OpenAPI document. OpenAPI 3.1 document
/
No token neededAPI index. Version and links. No token needed.
/openapi.json
No token neededThis document. The OpenAPI 3.1 description of the API. No token needed.
/pools
Pools this token can read. Pools in the token's scope where you are an active member. The demo pool is never listed.
/pools/{pool}
One pool. Type, format, season and league day of a pool.
/pools/{pool}/standings
Standings. Season standings, plus one table per division and the multi-season standings when the pool uses them. Same table as the standings export. 404 for pools without teams.
/pools/{pool}/rosters
Rosters. Every active team's current roster, one row per player. Salary fields only in pools with a salary cap.
limitcursor/pools/{pool}/moves
Moves. The season's latest roster moves (up to 500), newest first.
limitcursor/pools/{pool}/draft
Draft. The season's draft picks, made or not.
limitcursor/pools/{pool}/players
Players. The pool's Players list: pool points, pool salary, owner in this pool and projection, with the page's filters. A stats view adds a "stats" object.
groupteamfreeviewspansortdirqlimitcursor/pools/{pool}/points/daily
Points by team and day. Each team's points per league day. Retroactive days are flagged.
fromtolimitcursor/pools/{pool}/points/players
Dressed players of a day. Players dressed on a league day and the points they earned for their team.
datelimitcursor/pools/{pool}/matchups
Head-to-head matchups. Weeks, matchups and results. 404 when the pool's format has no matchups.
/pools/{pool}/calendar
Calendar. The pool's calendar events (rule dates, free-agent runs, playoffs, polls and bets), in your language.
limitcursorThe body is a JSON envelope. “text” is a ready-to-display sentence in the pool’s language; “data” follows the API conventions (ids, whole dollars, points with two decimals).
{
"id": "msg_2f9c1d7ab04e6c35a8d1f07b29",
"type": "night.summary",
"created_at": "2026-11-28T03:12:00Z",
"version": "2026-11",
"pool": {
"slug": "mon-pool",
"name": "Mon pool"
},
"text": "Les Lames: team of the night with 41.50 points (November 27).",
"url": "https://puckera.com/p/mon-pool/chat",
"data": {
"date": "2026-11-27",
"club_id": 12,
"club": "Les Lames",
"points": 41.5,
"runner_up_points": 38.2
}
}
Event types (“ping” = the test sent from the Integrations page):
trade.completed roster.moves night.summary record.new draft.pick auction.won poll.created sidebet.created chronicle.published season.champion trade_block.listed badge.unlocked player.contract announcement.published release_claim.awarded ping
PHP
$body = file_get_contents('php://input'); // corps brut / raw body
$id = $_SERVER['HTTP_WEBHOOK_ID'] ?? '';
$ts = $_SERVER['HTTP_WEBHOOK_TIMESTAMP'] ?? '';
$header = $_SERVER['HTTP_WEBHOOK_SIGNATURE'] ?? '';
$key = base64_decode(substr($secret, strlen('whsec_')));
$expected = 'v1,' . base64_encode(hash_hmac('sha256', "$id.$ts.$body", $key, true));
$valid = abs(time() - (int) $ts) <= 300;
$match = false;
foreach (explode(' ', $header) as $signature) {
$match = $match || hash_equals($expected, $signature);
}
if (!$valid || !$match) {
http_response_code(401);
exit;
}
$event = json_decode($body, true);
Node.js
import { createHmac, timingSafeEqual } from 'node:crypto';
// rawBody : le corps brut (Buffer ou string), avant JSON.parse / the raw body, before JSON.parse
function verify(secret, headers, rawBody) {
const id = headers['webhook-id'];
const ts = headers['webhook-timestamp'];
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const key = Buffer.from(secret.slice('whsec_'.length), 'base64');
const expected = Buffer.from(
'v1,' + createHmac('sha256', key).update(`${id}.${ts}.${rawBody}`).digest('base64'));
return String(headers['webhook-signature']).split(' ').some((signature) => {
const given = Buffer.from(signature);
return given.length === expected.length && timingSafeEqual(given, expected);
});
}