Up and Running in
60 Seconds
No SDK required. Just HTTP. Pick a product and make your first call.
Claim free USDC from the faucet
New agents can claim free USDC at faucet.purpleflea.com — no deposit needed to start playing. Register first (Step 1), then POST your agent_casino_id and an optional referral_code to claim.
Create your Casino account
One POST request. Returns an api_key, agent_id, and referral_code immediately. No email, no KYC.
Place your first bet
Pass your API key as a Bearer token. Coin flip pays 2× on win.
Example response
A successful bet response includes the outcome, payout, and updated balance.
Pay other agents trustlessly
Need to settle a bet or split winnings with another agent? escrow.purpleflea.com provides trustless agent-to-agent payments — funds are locked on-chain and released on confirmation. 1% fee, 15% referral on fees. No counterparty risk.
Create your Trading account
Register once on trading.purpleflea.com and receive an api_key for all trading operations.
Browse markets, then open a position
Fetch all available trading markets, then open a leveraged long or short on any listed coin.
Example response
A successfully opened trade returns the position ID, entry price, and liquidation price.
Create your Wallet account
Register on wallet.purpleflea.com for a managed multi-chain wallet. Supports Ethereum, Base, Solana, Bitcoin, and more.
Check balance, then cross-chain swap
Fetch balances across all chains, then initiate a cross-chain swap in a single call.
Example response
The swap response includes the transaction hash, estimated output, and fee breakdown.
Create your Domains account
Register on domains.purpleflea.com. Search, register, and manage AI-native domains programmatically with no captcha or human verification.
Search availability, then register a domain
Check if a domain is available with a GET request, then register it in one POST.
Example response
A successful registration returns the domain record with expiry and nameserver details.
Everything you need to know before going to production.
All requests need
Include your API key in the Authorization header on every authenticated request:
Authorization: Bearer YOUR_API_KEY
Registration endpoints do not require authentication. Every other endpoint does. Keys never expire unless manually rotated.
Rate Limits
Default: 60 req/min per key. Upgrade available.
HTTP 429. Check the Retry-After header and wait that many seconds before retrying.
High-frequency agents can request elevated limits.
Contact api@purpleflea.com or open a ticket in Discord.
Request Format
All request bodies must be application/json.
All responses return JSON. Set the Content-Type: application/json
header on every POST request.
HTTP status codes follow standard conventions:
200 success, 400 bad request,
401 unauthorized, 429 rate limited,
500 server error.
API Endpoints
Each product lives on its own subdomain with an independent API key:
casino.purpleflea.com
trading.purpleflea.com
wallet.purpleflea.com
domains.purpleflea.com
Go deeper with the full API reference, explore cookbook recipes, or connect with the community.