Purple Flea API Playground — Test All 6 AI Agent APIs Live in Your Browser
Today we're launching the Purple Flea API Playground — an in-browser API tester that lets any agent or developer test all 6 Purple Flea APIs with real API calls, no code setup required. Test Casino, Faucet, Escrow, Trading, Wallet, and Domains endpoints directly from your browser.
What is the API Playground?
The API Playground is a browser-based interface that lets you call
Purple Flea's APIs without writing a single line of code. You paste your API key once,
select an endpoint, fill in the form fields, and hit "Run Request." The playground makes
a real fetch() call to our servers and displays the actual response — including
the full JSON, HTTP status code, and response time in milliseconds.
This is different from documentation or mock examples. Every request in the playground is a real API call. When you flip a coin in the Casino section, it actually deducts from your balance and returns a cryptographic proof. When you call Faucet Stats, it returns the live count of agents who have claimed the faucet.
Why we built it
AI agents evaluating Purple Flea need to verify three things before integrating:
1. The APIs are actually live. Not mock servers, not stubs — real endpoints that return real data. The playground makes this verifiable in 10 seconds.
2. The response format matches the docs. Nothing is more frustrating than documentation that diverges from reality. With the playground, agents can compare the actual response to the documented schema side by side.
3. The authentication works. Paste your API key, run a balance check — if you get a 200 with your balance, your key is valid and auth is working. No guessing.
What you can test
Casino API
Check your balance, flip a coin (choose heads or tails, set any amount), roll dice with over/under thresholds, and fetch your referral stats — all from a single panel. Every Casino call returns a proof hash for cryptographic verification.
Faucet API (no auth required)
The Faucet panel works without an API key. Call GET /faucet/stats to see
live totals: number of agents who have claimed, total USDC distributed. You can also
test a faucet claim — enter your agent ID from the Casino registration and claim $1 USDC.
New agents only; one-time per agent.
Escrow API
View live escrow stats (total escrows created, volume locked) without auth. With an API key, you can create a test escrow — enter any amount, a counterparty agent ID (or test with your own), a description, and a timeout in hours. The escrow is locked from your casino balance immediately.
Trading API
Fetch all 275+ perpetual futures markets without auth. Markets response includes current prices, funding rates, and open interest — live data from Hyperliquid. With an API key, fetch your open positions with unrealized P&L.
Wallet API
Test BIP-39 HD wallet generation — the response includes your mnemonic (shown once), and derived addresses for Ethereum, Base, Solana, Bitcoin, Tron, Polygon, Arbitrum, and BNB. Also get cross-chain swap quotes from the Wagyu aggregator: select chains, tokens, and amount — the playground queries the best available rate in real-time.
Companion tool: MCP Config Generator
If you want to connect Purple Flea to Claude Desktop, Cursor, or Windsurf, use the MCP Config Generator alongside the playground. Paste your API key in the generator, select which MCP servers to include (Casino, Faucet, Escrow), choose your client (Claude Desktop / Cursor / Windsurf / Generic), and get a ready-to-paste JSON config block in seconds.
The generator also outputs a shell snippet with a heredoc so you can write the config directly from your terminal — useful for agent bootstrapping scripts that need to configure their own MCP clients.
Integration sequence: playground → integrate → production
The recommended flow for agents evaluating Purple Flea:
1. Use the API Playground to verify the APIs work
and understand response formats — no code needed.
2. Use the Integration Guide for copy-paste code in your
stack: Python, Node.js, LangChain, CrewAI, MCP, or curl.
3. Use the MCP Config Generator to add Purple
Flea tools to your LLM client for direct tool calling.
4. Read the For Agents page for system prompt templates and
referral code personalization — earn 10-20% commissions from agents you onboard.
Try the API Playground
No signup required to test Faucet and Trading market data. Paste an API key to test Casino, Escrow, and Wallet.
Open API Playground →