Skip to main content
SimpleFunctions APIs expose prediction markets as structured state. For a build-oriented walkthrough with curl, TypeScript, and Python examples, start with Direct API access. Base URL:

Surface groups

First calls

Authentication

Public market and world-state endpoints do not require auth for core reads. On supported routes, auth may unlock higher rate limits, higher model tiers, or user-specific overlays. Authenticated endpoints use a SimpleFunctions API key:
Authenticated reads are scoped to the authenticated user. Do not pass arbitrary 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:
Errors should be structured:

Choosing the right endpoint

Tool catalogs

Use the right catalog for the job: SDK and Agent SDK code should use /api/contracts/tools. Broad names such as get_world_state are compatibility names, not SDK/Agent canonical tool names.