Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.compose.market/llms.txt

Use this file to discover all available pages before exploring further.

The endpoint reference is a lookup map for the hosted API at https://api.compose.market. Compose exposes two inference surfaces:
  • Native /v1/* routes for Compose SDKs and x402-aware clients.
  • External /external/v1/* routes for OpenAI-compatible IDEs, agents, and wrappers that use a Compose Key as bearer auth.
Most other /api/*, /agent/*, and /workflow/* routes either return public catalog data or proxy paid runtime work after preparing a Compose payment.

Auth modes

ModeWhereHeader
Compose Key/v1/*, /external/v1/*, paid /agent/*, paid /workflow/*Authorization: Bearer compose-...
Raw x402Native /v1/* and paid runtime routesPAYMENT-SIGNATURE, plus x-x402-max-amount-wei for upto flows
Session contextSession, local, and runtime routesx-session-user-address, x-chain-id
Internal adminMetrics reindex and batch settlementx-internal-secret

Response conventions

HeaderDescription
X-Request-IdRequest ID accepted or minted by the root HTTP middleware.
X-Compose-ReceiptNative Compose settlement receipt when a JSON route settles after work.
PAYMENT-REQUIREDRaw x402 challenge returned when a paid route needs a signed payment.
PAYMENT-RESPONSEx402 settlement response header when the facilitator settles a payment.
x-compose-response-idResponse ID for native streaming inference.

Route families

FamilyPaths
System/health, /api/metrics/*, /v1/feedback/*
Native inference/v1/models, /v1/responses, /v1/chat/completions, media routes
External inference/.well-known/opencode, /external/v1/*
Payments and keys/api/payments/*, /api/keys/*, /api/session*, /api/x402/facilitator/*
Agents/agents, /agent/{walletAddress}/*, /api/agentverse/agents
Workflows/workflows, /workflow/*, /api/workflow/*, /api/workspace/*, /api/memory/*
Connectors/api/mcps/*, /api/onchain/*, /api/backpack/*, /api/registry/*
Local client support/api/local/*, /api/dispenser/*, /api/generate-*

Compatibility notes

OpenAI-style clients usually expect a single baseURL, bearer auth, OpenAI request fields, and Server-Sent Events for streaming. The external inference routes keep that shape and strip Compose receipt bodies while preserving diagnostic headers. Native routes keep x402 payment challenges, receipt headers, and Compose-specific response events.