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

API reference / Account

POST /v1/keys/rotate

Rotate your API key

Issue a new API key. The old key keeps working for a short grace window so a multi-process caller can roll over without an outage; pass immediate=true to kill it now. Cost: 0 credits.

Requires X-API-Key

Request

curl -X POST 'https://api.puntersedge.online/v1/keys/rotate' \
  -H 'X-API-Key: YOUR_KEY'

Parameters

NameIn TypeRequired Description
immediate query boolean no Revoke the old key NOW instead of after the grace window. Use this when rotating because the key leaked — a grace window keeps a compromised credential alive and is the wrong default for that case.

Responses

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

Example response

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

{
  "new_key": "pe_4f9c2a7e1b8d3c6a5e0f7b2d9c4a1e8f",
  "old_key_hint": "pe_9b21c0…",
  "key_version": 2,
  "rotated_at": "2026-09-07T00:52:10Z",
  "previous_key_valid_until": "2026-09-08T00:52:10Z",
  "message": "Key rotated. The previous key keeps working for 24h (until previous_key_valid_until) so you can roll over without downtime. Re-run with immediate=true if the old key may have leaked."
}

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.