Voting & rewards.
Secure, signed reward links let your game server associate a legitimate L2Seek vote with an opaque player reference.
How it works
1. Generate an API key in your verified owner dashboard. The link-signing secret is shown once. Keep both on your server, never in client-side JavaScript.
2. Create an expiring URL: /server/YOUR-SLUG?ref=PLAYER_ID&exp=UNIX_SECONDS&sig=HMAC_SHA256(SERVER_ID|PLAYER_ID|EXP, LINK_SECRET). The expiration must be within 15 minutes.
3. The user visits and votes after completing Turnstile. The browser must not be allowed to substitute an unsigned player reference.
4. Your game server authenticates to GET /api/v1/rewards/pending with Authorization: Bearer YOUR_API_KEY. The API returns up to 100 pending vote IDs and player references.
5. Grant each reward idempotently, keyed by its unique L2Seek vote ID, then acknowledge delivery using POST /api/v1/rewards/ack with JSON {"vote_id":123}. Never mark delivered before committing the in-game reward.
Requests must be made over HTTPS. If the connection fails, retry. Read full examples in the included INTEGRATION.md.