returns an animated gif with the subscriber card. supports query params or post json.
content-type: image/gif
always returns gif (no html fallback for crawlers).
content-type: image/gif
parameters:
name: string (required)
email?: string
amount: number | string
item: string (e.g. "pro", "builder")
type: "builder" | "pro" | "bits"
examples:
curl -sS -X POST '/api/new-sub' -H 'Content-Type: application/json' -d '{"name":"rafael guilherme","email":"rafael.guilherme@nilo.io","amount":49.99,"item":"pro","type":"pro"}' --output out.gif
png leaderboard (900×400). supports optional avatar images.
content-type: image/png
parameters:
n1, n2, n3: string (usernames, required)
w1, w2, w3?: number (wins, optional)
img1, img2, img3?: string (avatar urls)
examples:
curl -sS '/api/podium?n1=kuba&w1=3&n2=bruno&w2=1&n3=nuno&w3=1' --output podium.png