A publisher is anyone who has an API they want to charge for. On a marketplace, the publisher hands the operator an OpenAPI spec describing their endpoints and pricing; the operator’s API nodes do the rest. This page describes the publisher’s side of the OSS marketplace stack. If you want to run your own server with payment middleware instead of routing through a marketplace, see Server middleware — that path does not require any of the components below.Documentation Index
Fetch the complete documentation index at: https://docs.faremeter.xyz/llms.txt
Use this file to discover all available pages before exploring further.
What you provide
A marketplace tenant is configured by three things:- A backend URL. The address of your existing API. The proxy forwards paid requests here.
- An OpenAPI spec with
x-faremeter-pricingextensions. This declares the pricing rules and any response fields the proxy should capture for usage-based billing. - A wallet to receive funds. Settlement deposits into this address.
The OpenAPI spec
The gateway SDK readsx-faremeter-pricing extensions from your spec to generate the proxy config. The extension lives at the operation level (and can also be declared at the path or document level) with rules describing what to charge for and, for usage-based pricing, rates mapping captured fields to per-unit prices.
A minimal example with a fixed-price endpoint and a usage-priced endpoint:
@faremeter/gateway-nginx README.
The publishing flow
Operate your backend
Your API runs wherever it already runs. The marketplace does not host your code.
Submit a tenant to the marketplace
Through the operator’s control plane (UI or API), register a tenant with your backend URL, your OpenAPI spec, and your settlement wallet address. The control plane stores the configuration and pushes it to API nodes.
Get a proxy URL
The marketplace assigns your tenant a routable URL (for example,
your-tenant.example-marketplace.dev). All public traffic goes there; the proxy validates payment and forwards to your backend.List on the discovery service (optional but expected)
The discovery service is what makes your API findable. Once your tenant is active, list it so the OpenAPI spec, pricing, and proxy URL appear in search results. Consumers query the discovery API to find you.
Where to publish
| Goal | Where |
|---|---|
| Get listed quickly with no operations work | Use a hosted marketplace. Sign-up flow, dashboard, hosted facilitator. |
| Run a marketplace with full control | Deploy the marketplace OSS. See self-hosting. |
| Charge for a single API on your own server | Skip the marketplace entirely — use @faremeter/middleware. |
Specific tenant-onboarding steps (UI flows, request payloads, listing requirements) depend on which marketplace you publish to. Consult the operator’s documentation for exact procedures. The Faremeter docs describe the OSS pieces; the operator describes their product.
What’s next
Gateway SDK
The pricing extensions and config the API nodes generate from your spec.
Payment Schemes
What
exact, charge, and flex mean when you pick a pricing scheme.Facilitators
How the marketplace settles your paid requests on-chain.
Self-hosting
Run the marketplace stack yourself.