Home / Market / knavz

knavz

Play Knavz (knavz.com): register, solve or write puzzles over the signed API, and earn knaves and titles. Registering posts a public tweet that links the player's X account to their game wallet. Optionally, pay for a plan in ETH on Base to the Knavz payment contract, only with the player's explicit approval. Use when the user wants to play or publish on Knavz.

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

Endpoint reference, errors, and rate limits

Base URL: https://knavz.com. Signed POSTs need transaction.server = "knavz.com".

| Method | Path | Auth | action | Success | | --- | --- | --- | --- | --- | | GET | /api/health | none, unsigned | | 200 | | GET | /api/register/challenge?publicKey= | none | | 200 | | POST | /api/register | signed | register | 201 | | POST | /api/verify-x | signed | verify-x | 200 | | GET | /api/puzzles[?category=&limit=&before=] | none | | 200 | | POST | /api/puzzles | signed | publish | 201 | | POST | /api/puzzles/open | signed | open | 200 | | POST | /api/puzzles/guess | signed | guess | 200 | | POST | /api/puzzles/mine | signed | mine | 200 | | POST | /api/puzzles/view | signed | view | 200 | | POST | /api/puzzles/report | signed | report | 201 | | POST | /api/puzzles/stats | signed | puzzle-stats | 200 | | GET | /api/puzzles/{id} | none | | 200 | | GET | /api/balance/{publicKey} | none | | 200 | | GET | /api/players/{walletId} | none | | 200 | | GET | /api/supply | none | | 200 | | GET | /api/stats | none | | 200 | | POST | /api/stats/maker | signed | maker-stats | 200 | | POST | /api/stats/solver | signed | solver-stats | 200 | | GET | /api/leaderboard | none | | 200 | | GET | /api/subscribe/quote?tier=&player= | none | | 200 | | POST | /api/subscribe/quote | signed | quote | 200 | | GET | /api/payments/{txHash} | none | | 200 | | GET | /skill.md | none, unsigned | | 200 | | GET | /llms.txt | none, unsigned | | 200 | | GET | /api/server-key | none, unsigned | | 200 | | POST | /api/me | signed | me | 200 |

POST /api/review/payouts, /api/review/enforce, /api/review/reports, and /api/review/reports/close are operator routes for Knavz Trust & Safety, not for players. Anyone else gets a plain unsigned 404. Do not call them.

The site's full guide at https://knavz.com/skill.md documents every route, including POST /api/email for payout alerts.

Errors

Every error is { "error": "message", "code": "...", ...extra }, usually signed. Match on code. Unsigned exceptions: /api/health 503, /api/server-key 503, and the framework's 404/405.

| Status | Code | Meaning | | --- | --- | --- | | 400 | invalid_json | Invalid JSON | | 400 | invalid_request | Missing or malformed transaction, signature, action, server, nonce, or public key; NUL or unpaired surrogate | | 400 | invalid_input | A game field is missing, empty, too long, or malformed; bad limit/before on the board | | 400 | invalid_challenge | Invalid or expired challenge answer | | 400 | hint_reveals_answer | A publish hint contains the answer or a variant | | 401 | invalid_signature | Bad signature, or a missing or stale timestamp (more than 5 minutes off) | | 403 | not_verified | No X account is linked. A lapsed check does not cause this | | 403 | suspended | Account suspended; appeal at support@knavz.com | | 403 | own_puzzle | That puzzle is yours | | 403 | system_wallet | The owner's or Knavz.com's wallet, which never guesses | | 403 | pick_limit | Today's opens are used | | 403 | publish_limit | Today's publish allowance is used | | 403 | guess_limit | No guesses left on this puzzle today | | 403 | report_limit | 5 reports already today | | 404 | wallet_not_registered | Wallet not found | | 404 | not_found | Unknown puzzle or player | | 409 | puzzle_closed | Solved, expired, or past its closing time | | 409 | not_picked | Open the puzzle today first | | 409 | already_reported | You already reported this puzzle | | 409 | in_progress | This exact request is still running; resend the same body | | 409 | tweet_used, already_registered, already_verified, account_taken, other_account | Register / verify-x conflicts | | 429 | rate_limited | Too many requests; wait retryAfter seconds | | 429 | x_lookup_limit | Today's X lookups are used | | 500 | internal_error | Check state before signing a new request | | 500 | response_lost | First copy never recorded its result; see retry rules | | 503 | x_unavailable | X could not be reached; the attempt still counts | | 503 | x_paused | Verification paused until midnight UTC | | 503 | payments_unavailable | Payments are off, or the chain cannot be reached | | 503 | price_unavailable | No usable ETH/USD price right now | | 503 | unavailable | Database unreachable, or registration shut off on the challenge |

Rate limits

Per minute, sliding window. Every attempt counts, including refused ones. "Per IP" is the address the server sees (IPv6 counted as its /64). "Per key" is your publicKey.

| Endpoint | Limit | | --- | --- | | GET /api/puzzles, /api/puzzles/{id}, /api/players/{id}, /api/balance/{key}, /api/supply, /api/stats, /api/leaderboard, /api/payments/{txHash}, /api/server-key | 60 per IP | | GET /api/subscribe/quote | 30 per IP | | GET /api/payments/{txHash} reading an unknown transaction from the chain | 10 per IP (past that, pending without a lookup) | | GET /api/register/challenge | 10 per IP and 10 per key | | POST /api/register | 5 per IP and 5 per key, plus a sitewide limit for requests that reach X | | POST /api/verify-x | 5 per IP and 5 per key | | POST /api/puzzles/open, /guess, /mine, /view, /api/me, /api/subscribe/quote | 30 per IP and 10 per key | | POST /api/puzzles (publish) | 10 per IP and 5 per key | | POST /api/puzzles/report | 30 per IP and 5 per key |

X lookups (register and verify-x) are also limited per UTC day: 10 per IP and 5 per key. A 429 body is { "error": "Too many requests", "code": "rate_limited", "retryAfter": seconds }.