# PubFi Docs Public documentation for PubFi's agent-native crypto data layer and signed Registry v2 gateway. ## Core Docs - Docs home: https://docs.pubfi.ai - Project overview: https://docs.pubfi.ai/project-overview - Quickstart: https://docs.pubfi.ai/getting-started/quickstart - Staging guide: https://docs.pubfi.ai/getting-started/staging - API key and runtime: https://docs.pubfi.ai/getting-started/api-key-runtime - Registry gateway examples: https://docs.pubfi.ai/reference/provider-gateway-examples - MCP client setup: https://docs.pubfi.ai/getting-started/mcp-client - MCP client guides: https://docs.pubfi.ai/getting-started/mcp-clients - ChatGPT and Codex Plugin: https://docs.pubfi.ai/getting-started/chatgpt-codex-plugin - Accountless x402: https://docs.pubfi.ai/getting-started/x402 - Discovery concepts: https://docs.pubfi.ai/concepts/discovery - Registry contracts: https://docs.pubfi.ai/concepts/capability-contracts - Provider readiness: https://docs.pubfi.ai/concepts/provider-readiness - Route planning: https://docs.pubfi.ai/concepts/route-planning - Payment and execution modes: https://docs.pubfi.ai/concepts/payment-and-execution-modes - Account, Credits, Auto Top-Up, usage, and billing: https://docs.pubfi.ai/concepts/account-credit-usage - API reference guide: https://docs.pubfi.ai/reference/api-reference - Agent interface: https://docs.pubfi.ai/reference/agent-interface - Agent-readable surfaces: https://docs.pubfi.ai/agent-readable/surfaces ## Runtime References - Staging product and login: https://stg.pubfi.ai, https://stg.pubfi.ai/login - Staging API reference, OpenAPI, catalog, pricing inventory, and public status: https://api-stg.pubfi.ai/reference, https://api-stg.pubfi.ai/openapi.json, https://api-stg.pubfi.ai/v1/capabilities, https://api-stg.pubfi.ai/v1/operation-pricing-inventory, https://api-stg.pubfi.ai/v1/status - Staging MCP root, x402 endpoint, and manifest: https://mcp-stg.pubfi.ai, https://mcp-stg.pubfi.ai/x402, https://mcp-stg.pubfi.ai/.well-known/mcp.json - Interactive API reference: https://api.pubfi.ai/reference - Runtime OpenAPI: https://api.pubfi.ai/openapi.json - Current Registry v2 catalog: https://api.pubfi.ai/v1/capabilities - Operation-pricing inventory: https://api.pubfi.ai/v1/operation-pricing-inventory - Public status API: https://api.pubfi.ai/v1/status - API-key auth context: https://api.pubfi.ai/v1/auth/context - API-host Glama metadata: https://api.pubfi.ai/.well-known/glama.json - API-host MCP manifest: https://api.pubfi.ai/.well-known/mcp.json - MCP manifest: https://mcp.pubfi.ai/.well-known/mcp.json - OpenAI Apps domain ownership proof: https://mcp.pubfi.ai/.well-known/openai-apps-challenge - MCP OAuth protected resource: https://mcp.pubfi.ai/.well-known/oauth-protected-resource - MCP x402 endpoint: https://mcp.pubfi.ai/x402 - MCP discovery pointer: https://pubfi.ai/.well-known/mcp.json - MCP server card: https://pubfi.ai/.well-known/mcp/server-card.json - Optional MCP registry auth proof route: https://pubfi.ai/.well-known/mcp-registry-auth ## Product Surfaces - Product site: https://pubfi.ai - About: https://pubfi.ai/about - Developers: https://pubfi.ai/developers - Products: https://pubfi.ai/products - Pricing: https://pubfi.ai/pricing - Status: https://pubfi.ai/status - Partners: https://pubfi.ai/partners - Contact: https://pubfi.ai/contact - Blog: https://pubfi.ai/blog - Product pages: https://pubfi.ai/products/subscan-api, https://pubfi.ai/products/degov-api, https://pubfi.ai/products/insight-api, https://pubfi.ai/products/defi-api - Discovery: https://pubfi.ai/discovery - Discovery directory Markdown: https://pubfi.ai/discovery.md - Provider Profile index: https://pubfi.ai/discovery/sources - Sitemap: https://pubfi.ai/sitemap.xml - Robots policy: https://pubfi.ai/robots.txt - IndexNow verification key: https://pubfi.ai/50e4aa84-257b-4ff4-a822-5da3d567384c.txt - Login: https://pubfi.ai/login - Privacy policy: https://pubfi.ai/privacy-policy - Terms of service: https://pubfi.ai/terms-of-service - Homepage Markdown: https://pubfi.ai/index.md - About Markdown: https://pubfi.ai/about.md - Contact Markdown: https://pubfi.ai/contact.md - Developers Markdown: https://pubfi.ai/developers.md - Products Markdown: https://pubfi.ai/products.md - Pricing and access Markdown: https://pubfi.ai/pricing.md - Authentication Markdown: https://pubfi.ai/auth.md - Agents guide: https://pubfi.ai/agents.md - Product LLM index: https://pubfi.ai/llms.txt - Developer LLM index: https://pubfi.ai/developers/llms.txt - Product LLM full export: https://pubfi.ai/llms-full.txt - AI Catalog: https://pubfi.ai/.well-known/ai-catalog.json - Agent Resource Descriptor: https://pubfi.ai/.well-known/ard.json - RFC 9727 API Catalog: https://pubfi.ai/.well-known/api-catalog - Environment-matched API reference: https://pubfi.ai/api-reference - Environment-matched Runtime OpenAPI: https://pubfi.ai/openapi.json - MCP OAuth authorization server: https://mcp.pubfi.ai/.well-known/oauth-authorization-server - Discovery capability-card JSON: https://pubfi.ai/discovery/agent-capabilities.json - Agent interface guide: https://docs.pubfi.ai/reference/agent-interface - Agent-readable surfaces: https://docs.pubfi.ai/agent-readable/surfaces ## Boundary Discovery inclusion does not imply Registry readiness. The current Registry catalog and Runtime OpenAPI define executable paths and methods. API-key execution, registered purchases and Credits, and accountless x402 are separate modes. An optional catalog `free_rate_limit` and OpenAPI `x-pubfi-free-variant` advertise an API-key-authenticated `:free` route variant that charges zero Credits. Subscan integration exclusions apply before route publication; an upstream plan or operation name does not establish eligibility. Free requests can record non-financial observations without creating billable usage facts or Credit charges. The authenticated MCP root accepts a PubFi API key or OAuth access token for `pubfi.route.execute`, including that advertised suffix, and for the account-only `pubfi.substrate.runtime_upgrade.verify` tool. It rejects payment metadata and does not fall back. The separate `/x402` endpoint rejects Bearer credentials, exposes only the three general Registry tools, and supports the official x402 metadata flow, so an agent can pay directly through MCP. The hosted MCP endpoints support current `2026-07-28` discovery and legacy `2025-11-25` initialize-era clients without protocol sessions. The local stdio bridge is modern-only. Direct-HTTP response delivery is automatic on the normal authenticated paid or `:free` route. The catalog and Runtime OpenAPI publish no stream-policy field or caller-selected `:stream` suffix. The platform ceiling is 128 MiB, with 10-second idle and 120-second body deadlines and heavy-transfer concurrency limits of 1 per account, 4 per provider, and 8 globally. OpenAPI query and body fields are source-declared request-construction metadata. HTTP and MCP execution preserve any RFC 3986-valid query of at most 65,536 encoded bytes, including duplicate or undeclared fields. A non-empty POST body is forwarded byte-for-byte within the route-selected limit and media type; empty bodies are omitted and GET bodies are rejected. The PubFi Plugin combines one workflow skill with the existing Account/OAuth MCP root. It discovers and inspects the current catalog before exact route execution, discloses published Credit cost before paid calls, and does not initiate commerce or switch to the independent payment lane. Each API runtime assigns the environment when it creates a key and accepts only matching keys. Clients cannot select the environment or request per-key scopes; only a human Owner or Admin can manage keys. `X-PubFi-Api-Key` is not accepted, but it remains a credential carrier and must be absent from accountless x402 requests. `GET /v1/auth/context` lets an environment-matched PubFi API key read its existing `principal_id`, bound `billing_account_id`, and nullable `actor_subject_id`. The response is private and no-store, creates no account or billing state, and does not accept OAuth fallback. An API key can read its own account's usage, detailed billing, authoritative available Credit balance, and server-authoritative free-quota counters. The focused account routes are private and no-store. They do not expose payment or internal limiter state. Each eligible billing account receives a one-time starter grant of 1,000 Credits. Starter and purchased Credits share the same service unit and available balance; request capacity depends on the operation's current `credit_cost`. The starter grant is not a purchase. Accountless x402 creates no PubFi account, API key, Credits, or invoice. The environment-specific wallet's USDC is the payment balance; keep separate wallets and private keys for Staging and Production. A Signed Receipt is payment and execution evidence, not a balance, top-up, or deposit record. Registered-account Auto Top-Up is off by default. It uses the account's shared payment method and buys a fixed whole-Credit quantity only under an explicitly enabled threshold and finite UTC monthly-limit policy. Human members can read its state; only an Owner or Admin can mutate it. The dashboard name is Auto Top-Up, while the stable API route name is `credit-auto-reload`. The current checked-in pricing target sets one Credit and 0.001 USDC for every priced Subscan and DeGov operation and uses a $1/1,000-Credit registered-purchase base. Confirm installed prices and offer availability from the current catalog, Runtime OpenAPI, and offer response. Purchase creation requires the current offer key, exact catalog release hash, amount, accepted terms version and hash, and `Idempotency-Key`. The public no-store operation-pricing inventory projects every approved typed plan in the installed snapshot. Its schemas retain `free_health` for compatibility, but the current producer classifies upstream operations, including health operations, as `merchant_priced`. The compatibility response uses `quantro.operation-pricing-inventory.v2`. When x402 V2 intake is on, the response uses `quantro.operation-pricing-inventory.v3` with `x402_contract_version: "quantro.x402.v2"`. It contains no selected price, is not execution authority, and returns `503` instead of a partial inventory when the complete projection cannot be formed. Every bounded provider HTTP `2xx`, `4xx`, or `5xx` response keeps its status and exact body. PubFi uses a safe parameter-free media type. These are provider responses, not PubFi gateway-error envelopes. Buffered overflow returns HTTP `502` with `gateway.upstream_response_too_large`. MCP represents valid JSON as a JSON value, valid text as a string, other bytes as base64 data, and an empty body as `null` at or below 1 MiB. A larger MCP result returns one HTTPS `resource_link` and compact status, media type, byte count, SHA-256, expiry, and URI metadata without inline provider bytes. The public no-store status APIs use `operational`, `degraded`, `major_outage`, or `unknown`. Missing, stale, or incoherent evidence stays `unknown`; status does not replace the Registry catalog as route authority. Gateway summaries count logical API operations separately from source operations and Registry route variants. Schema `pubfi.status.gateway.v3` includes provider summaries and sentinel observations. Provider summaries separate reachability from operation-family health and report `current`, `missing_or_stale`, `stale`, or `unverified` evidence. Known failures remain visible when other observations are missing. Daily request metrics do not prove current health. Provider and operation detail endpoints are no longer public Status routes. Incidents use `suspect`, `open`, `recovering`, or `resolved` state and identify the responsible owner layer. `operation_pricing_status` reports whether paid execution pricing is available without replacing independent provider or PubFi proxy evidence. Read the status history window, segment duration, and segment timestamps from the selected environment's response. Do not assume a fixed window or segment length. Keep active-target coverage separate from passive request metrics when present. MCP `tools/list` is endpoint-specific. The authenticated root declares `oauth2` with no scopes for both execution tools and exposes free-health, account-free, account-paid, and compact runtime- upgrade verification outcomes. `/x402` declares `noauth` for its three tools and exposes only free-health or x402 outcomes. A missing or invalid OAuth execution credential returns HTTP `401` with protected-resource discovery and `_meta["mcp/www_authenticate"]`; an invalid `pf_sk_v1_` API key uses the separate API-key `401`. Base Sepolia `eip155:84532` is the Staging x402 boundary. Staging HTTP and MCP acceptance completed on 2026-07-27 with Signed Offer and Signed Receipt verification and exact replay; see https://github.com/helixbox/pubfi-mono/actions/runs/30258511212 (source-repository access required). The historical Production HTTP and MCP acceptance used Base mainnet `eip155:8453`, canonical Base USDC, 1000 atomic units or 0.001 USDC per request, and the published Production payee. Those values and that route are not current authority. Production commands spend real USDC when the current catalog and challenge permit them. Production acceptance completed on 2026-07-27; see https://github.com/helixbox/pubfi-mono/actions/runs/30259030111 (source-repository access required). HTTP and MCP share the same x402 `exact` settlement and replay path. Exact replay reuses the first settlement and receipt without a second charge. PubFi owns the accounting facts, but one request cannot debit both the registered and x402 lanes. Public docs and reachability checks do not prove ranking, traffic, or AI citation success. ## First HTTP Request Start with https://docs.pubfi.ai/getting-started/quickstart for a complete free request. An advertised `:free` variant requires a PubFi API key and charges zero Credits, even when paid execution reports `pricing_unavailable`. Empty or binary-only request schemas do not describe provider JSON fields; use the exact upstream documentation or report the gap. Endpoint selection: use the documented alias for path selectors and keep the PubFi API origin. Provider-specific interpretation and examples live under Providers: - Subscan: https://docs.pubfi.ai/providers/subscan - DeGov: https://docs.pubfi.ai/providers/degov Use the generated API Reference for full parameter and response contracts.