Documentation

FastAPI

FastAPI discovery

Publish eligible static FastAPI routes as discoverable x402 resources.
Last reviewed August 9, 2026

Eligible routes

Static synchronized routes can opt into CDP Bazaar discovery. Dynamic templates containing path parameters are currently excluded because a literal template URL would not be a usable resource.

Metadata source

Access402 combines the code-owned description, price, discovery input example, and OpenAPI schemas with the installation network and project receiving wallet. Keep operation summaries and schemas accurate in the FastAPI application.

Publish and monitor

Set discovery_enabled=True on a protected static route. Access402 creates or updates one provider publication record and tracks desired and observed state.

CDP indexing is asynchronous and requires a successful settlement through the CDP facilitator. Access402 cannot guarantee external admission, ranking, or retention.

Remove from discovery

Set discovery_enabled=False to request removal while keeping the route protected. Remove the decorator when the endpoint should no longer be paywalled.