SimpleFunctions APIs expose prediction markets as structured state. Base URL:Documentation Index
Fetch the complete documentation index at: https://docs.simplefunctions.dev/llms.txt
Use this file to discover all available pages before exploring further.
Surface groups
| Group | Prefix | Auth | Purpose |
|---|---|---|---|
| Query and public markets | /api/public/* | no auth for public reads | Search, screens, market detail, index, gov/econ context |
| Agent world | /api/agent/* | no auth for core reads | Compact world state, deltas, feed, inspect |
| Account | /api/thesis, /api/feed, /api/intents, /api/keys | API key | User-owned theses, feed, intents, API keys |
| Portfolio | /api/portfolio/* | API key | Portfolio state, ticks, trades, config, views, strategies |
First calls
Authentication
Public market and world-state endpoints do not require auth. Authenticated endpoints use a SimpleFunctions API key:userId fields from the client for normal account or portfolio reads.
Common response style
Public endpoints generally return the documented object directly. Account and portfolio surfaces use a stable envelope where appropriate:Choosing the right endpoint
| User question | Endpoint |
|---|---|
| ”What markets match this real-world event?” | GET /api/public/query?q= |
| ”What should an agent know about the world right now?” | GET /api/agent/world |
| ”What changed since the last loop?” | GET /api/agent/world/delta?since= |
| ”What is the full state of this ticker?” | GET /api/public/market/{ticker} or GET /api/agent/inspect/{ticker} |
| ”What official economic/government context maps to this topic?” | GET /api/public/query-econ?q= or GET /api/public/query-gov?q= |
| ”What user-owned portfolio history can this agent see?” | GET /api/portfolio/ticks and related portfolio endpoints |
| ”What tools can an agent call?” | GET /api/tools |