{"openapi":"3.1.0","info":{"title":"Vokko","version":"0.1.9","description":"Cached host lookup is free. Live refresh is paid (Vokko Pro or x402 on eip155:8453). Host reports include paymentRails. payable is true only after a parsed challenge. Changes: last 5 summaries free, full history for a subscriber of that origin. find_payable is evidence, not a rank. When cache.callabilityStale is true, pay a refresh route. seller_trust (GET /api/v1/sellers/trust, MCP seller_trust) is live at $0.001 USDC. policy_check (POST /api/v1/policy/check, MCP check_payment_policy) is coming soon and is not a live path.","x-guidance":"Cached GET /api/v1/hosts/{domain} is free. Paid routes declare x-payment-info and return 402 without PAYMENT-SIGNATURE. Spec examples use host allbirds.com, protocol x402, and the public receipt tx; they are safe to try unpaid."},"tags":[{"name":"paid","description":"x402 USDC on Base (eip155:8453). Full refresh $0.02. One protocol $0.005. Batch $0.01 + $0.002 × N."}],"paths":{"/api/v1/hosts/{domain}":{"get":{"operationId":"lookupHost","summary":"Cached host report","security":[],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"example":"allbirds.com"}],"responses":{"200":{"description":"Free cached host report. Does not 402. Always includes cache (presenceStale, callabilityStale, presenceMaxAgeSec, callabilityMaxAgeSec) and refresh (payable, priceUsd, network, rest GET /api/v1/hosts/{domain}/refresh, mcp tool refresh_host at /api/v1/mcp, docs). Live data is the refresh route.","content":{"application/json":{"schema":{"type":"object","required":["cache","refresh"],"properties":{"probedAt":{"type":"string","format":"date-time"},"cache":{"type":"object","required":["presenceMaxAgeSec","callabilityMaxAgeSec","presenceStale","callabilityStale"],"properties":{"presenceMaxAgeSec":{"type":"integer","const":86400},"callabilityMaxAgeSec":{"type":"integer","const":900},"presenceStale":{"type":"boolean"},"callabilityStale":{"type":"boolean"}}},"refresh":{"type":"object","required":["payable","priceUsd","network","rest","mcp","docs"],"properties":{"payable":{"type":"boolean","const":true},"priceUsd":{"type":"number","description":"USDC. Same as GET /refresh. Default 0.02."},"network":{"type":"string","description":"CAIP-2. Default eip155:8453 (Base)."},"rest":{"type":"object","required":["method","url"],"properties":{"method":{"type":"string","const":"GET"},"url":{"type":"string"}}},"mcp":{"type":"object","required":["tool","path"],"properties":{"tool":{"type":"string","const":"refresh_host"},"path":{"type":"string","const":"/api/v1/mcp"}}},"docs":{"type":"string"}}}}}}}}}}},"/api/v1/hosts/{domain}/refresh":{"get":{"operationId":"refreshHost","tags":["paid"],"summary":"Paid live re-probe","description":"$0.02 USDC on eip155:8453 (Base). ?refresh=1 on GET /api/v1/hosts/{domain} is the same paywall. 402 body includes x402Version and accepts. Unknown or duplicate query and literal-IP hosts are 400 before the 402.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"example":"allbirds.com"}],"x-payment-info":{"sku":"refresh","price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{}}],"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","payTo":"0x07066Ea0e66CF277cd279eD7fBCA220ecB41E5a4"},"responses":{"200":{"description":"Fresh host report"},"400":{"description":"Literal-IP host or unknown/duplicate query. Returned before the payment gate."},"402":{"description":"Payment required. Body includes x402Version and accepts."}}}},"/api/v1/hosts/{domain}/changes":{"get":{"operationId":"listChanges","summary":"Capability drift, newest first","security":[],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"example":"allbirds.com"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"},"example":5}],"responses":{"200":{"description":"Change summaries or full events"}}}},"/api/v1/hosts/{domain}/protocols/{protocol}/refresh":{"get":{"operationId":"refreshHostProtocol","tags":["paid"],"summary":"Paid live probe of one protocol ($0.005 USDC on Base)","description":"$0.005 USDC on eip155:8453 (Base). protocol is a detector id (ucp, acp, ap2, tap, mcp, a2a, x402, mpp, llms, ai-plugin, openapi). Unknown protocol, literal-IP host, or unknown/duplicate query is 400 before the 402. Full-host refresh stays $0.02. Response is that protocol's capability cell only.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"example":"allbirds.com"},{"name":"protocol","in":"path","required":true,"schema":{"type":"string"},"example":"x402"}],"x-payment-info":{"sku":"protocol_refresh","price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}],"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","payTo":"0x07066Ea0e66CF277cd279eD7fBCA220ecB41E5a4"},"responses":{"200":{"description":"Protocol cell: domain, protocol, probedAt, cell"},"400":{"description":"Unknown protocol, literal-IP host, or unknown/duplicate query"},"402":{"description":"Payment required at $0.005. Body includes x402Version, accepts, and payTo."}}}},"/api/v1/hosts/refresh":{"post":{"operationId":"refreshHostsBatch","tags":["paid"],"summary":"Paid batch live re-probe ($0.01 + $0.002 × N USDC on Base)","description":"$0.01 + $0.002 × N USDC on eip155:8453 (Base). Body { domains: string[], mode: \"full\" }. Cap 10. One 402 for the batch price. Probe failures are per-item errors. Discovery advertises N=1 (amount 12000). Literal-IP domains, unknown/duplicate query, over cap, empty domains, or mode other than full are 400 before the 402.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domains","mode"],"properties":{"domains":{"type":"array","maxItems":10,"items":{"type":"string"}},"mode":{"type":"string","const":"full"}}},"example":{"domains":["allbirds.com"],"mode":"full"}}}},"x-payment-info":{"sku":"batch_refresh","price":{"mode":"dynamic","currency":"USD","min":"0.012","max":"0.03"},"protocols":[{"x402":{}}],"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","payTo":"0x07066Ea0e66CF277cd279eD7fBCA220ecB41E5a4"},"responses":{"200":{"description":"mode, priceUsd, and results[] of per-host summaries or errors"},"400":{"description":"Over cap, empty domains, mode is not full, literal-IP domain, or unknown/duplicate query"},"402":{"description":"Single payment required for $0.01 + $0.002 × N. Body includes x402Version and accepts."}}}},"/.well-known/x402":{"get":{"operationId":"x402Discovery","summary":"Vokko's own x402 discovery catalog","security":[],"description":"Lists host /refresh, protocol refresh, batch at N=1 ($0.01 + $0.002×N, amount 12000), then live micro-SKUs. Each accepts array is built by that route's own 402 builder.","responses":{"200":{"description":"x402 discovery document. resources[].accepts matches the live unpaid 402 for that resource."}}}},"/api/v1/hosts/{domain}/pay-preflight":{"get":{"tags":["paid"],"operationId":"pay_preflight","summary":"Can an agent pay at this host? Rails, endpoint, price, freshness.","description":"Can an agent pay at this host? Rails, endpoint, price, freshness. $0.001 USDC on eip155:8453.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"example":"allbirds.com"},{"name":"intent","in":"query","required":false,"schema":{"type":"string","enum":["checkout","api","any"]},"example":"any"}],"responses":{"200":{"description":"Paid JSON envelope"},"400":{"description":"Invalid input before the payment gate: unknown or duplicate query, network other than the live CAIP-2, literal-IP host, or another field error. The error names only the allowed network."},"402":{"description":"Payment required. Body includes sku, priceUsd, x402Version, and accepts."},"429":{"description":"Rate limit. Returned before the payment gate."}},"x-x402":{"priceUsd":0.001,"network":"eip155:8453","asset":"USDC","mcpTool":"pay_preflight"},"x-payment-info":{"sku":"pay_preflight","price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}],"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","payTo":"0x07066Ea0e66CF277cd279eD7fBCA220ecB41E5a4"}}},"/api/v1/endpoints/health":{"get":{"tags":["paid"],"operationId":"endpoint_health","summary":"Is this paid API up, and what does it charge right now?","description":"Is this paid API up, and what does it charge right now? $0.001 USDC on eip155:8453.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"},"example":"https://allbirds.com/api"},{"name":"method","in":"query","required":false,"schema":{"type":"string","enum":["GET","POST"]},"example":"GET"}],"responses":{"200":{"description":"Paid JSON envelope"},"400":{"description":"Invalid input before the payment gate: unknown or duplicate query, network other than the live CAIP-2, literal-IP host, or another field error. The error names only the allowed network."},"402":{"description":"Payment required. Body includes sku, priceUsd, x402Version, and accepts."},"429":{"description":"Rate limit. Returned before the payment gate."}},"x-x402":{"priceUsd":0.001,"network":"eip155:8453","asset":"USDC","mcpTool":"endpoint_health"},"x-payment-info":{"sku":"endpoint_health","price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}],"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","payTo":"0x07066Ea0e66CF277cd279eD7fBCA220ecB41E5a4"}}},"/api/v1/providers/find":{"get":{"tags":["paid"],"operationId":"find_provider","summary":"Cheapest live x402 providers for a task. Placement is never sold.","description":"Cheapest live x402 providers for a task. Placement is never sold. $0.005 USDC on eip155:8453. Per-IP rate limit 60/min, then x402 verify and settle (replay/nonce protected), then the provider_index tsv query (health_status='ok' and checked_at within 7 days). No query, ranking, or partial result on an unverified or unsettled payment. An empty result still costs $0.005 and returns 200 with {results: [], reason: 'no_match'}. Vokko does not guarantee third-party providers.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"Search string. After trim: 1 to 200 characters.","example":"weather"},{"name":"maxPriceUsd","in":"query","required":false,"schema":{"type":"string"},"description":"Optional upper bound on a matched provider's advertised USDC price."},{"name":"network","in":"query","required":false,"schema":{"type":"string","enum":["eip155:8453"]},"description":"CAIP-2. Default eip155:8453.","example":"eip155:8453"},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["http","mcp","any"]},"description":"Provider transport filter. Default any.","example":"any"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"},"description":"Integer from 1 to 20. Default 10.","example":10}],"responses":{"200":{"description":"Paid JSON envelope. Empty answers still cost $0.005 and return 200 with {results: [], reason: 'no_match'}. Vokko does not guarantee third-party providers."},"400":{"description":"Invalid input before the payment gate: unknown or duplicate query, network other than the live CAIP-2, or another field error. The error names only the allowed network."},"402":{"description":"Payment required at $0.005. Body includes sku, priceUsd, x402Version, and accepts."},"429":{"description":"Per-IP rate limit (60/min). Returned before x402 verify/settle and before the provider_index query."}},"x-x402":{"priceUsd":0.005,"network":"eip155:8453","asset":"USDC","mcpTool":"find_provider"},"x-payment-info":{"sku":"provider_finder","price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}],"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","payTo":"0x07066Ea0e66CF277cd279eD7fBCA220ecB41E5a4"}}},"/api/v1/hosts/{domain}/payto-check":{"get":{"tags":["paid"],"operationId":"payto_check","summary":"Does this payTo address belong to the domain? Evidence, not a guarantee.","description":"Does this payTo address belong to the domain? Evidence, not a guarantee. $0.002 USDC on eip155:8453.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"example":"allbirds.com"},{"name":"address","in":"query","required":true,"schema":{"type":"string"},"example":"0x07066Ea0e66CF277cd279eD7fBCA220ecB41E5a4"},{"name":"network","in":"query","required":false,"schema":{"type":"string","enum":["eip155:8453"]},"example":"eip155:8453"}],"responses":{"200":{"description":"Paid JSON envelope"},"400":{"description":"Invalid input before the payment gate: unknown or duplicate query, network other than the live CAIP-2, literal-IP host, or another field error. The error names only the allowed network."},"402":{"description":"Payment required. Body includes sku, priceUsd, x402Version, and accepts."},"429":{"description":"Rate limit. Returned before the payment gate."}},"x-x402":{"priceUsd":0.002,"network":"eip155:8453","asset":"USDC","mcpTool":"payto_check"},"x-payment-info":{"sku":"payto_check","price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}],"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","payTo":"0x07066Ea0e66CF277cd279eD7fBCA220ecB41E5a4"}}},"/api/v1/receipts/{tx}/verify":{"get":{"tags":["paid"],"operationId":"verify_receipt","summary":"Did this USDC transfer settle to the expected address and amount?","description":"Did this USDC transfer settle to the expected address and amount? $0.001 USDC on eip155:8453.","parameters":[{"name":"tx","in":"path","required":true,"schema":{"type":"string"},"description":"Transaction hash","example":"0x036101ac841613d67f9cf37bd262eb1c55654cb32a68564ddaf00b121af4f59e"},{"name":"payTo","in":"query","required":true,"schema":{"type":"string"},"description":"Expected recipient address","example":"0x07066ea0e66cf277cd279ed7fbca220ecb41e5a4"},{"name":"network","in":"query","required":false,"schema":{"type":"string","enum":["eip155:8453"]},"description":"CAIP-2. Default eip155:8453.","example":"eip155:8453"},{"name":"asset","in":"query","required":false,"schema":{"type":"string"},"description":"USDC or the USDC contract address for the network. Default USDC.","example":"USDC"},{"name":"amount","in":"query","required":false,"schema":{"type":"string"},"description":"Atomic USDC amount. Exactly one of amount or amountUsd is required.","example":"1000"},{"name":"amountUsd","in":"query","required":false,"schema":{"type":"string"},"description":"USDC decimal amount. Exactly one of amount or amountUsd is required."}],"responses":{"200":{"description":"Paid JSON envelope. data.verdict and data.finality report settlement.","content":{"application/json":{"schema":{"type":"object","required":["sku","data"],"properties":{"sku":{"type":"string","const":"receipt_verify"},"data":{"type":"object","nullable":true,"required":["verdict","finality"],"properties":{"verdict":{"type":"string","enum":["settled","mismatch","reverted","pending","not_found","truncated","unavailable"]},"finality":{"type":["string","null"],"enum":["unconfirmed","confirmed","finalized",null]},"final":{"type":"boolean"},"txHash":{"type":"string"},"network":{"type":"string"}}}}}}}},"400":{"description":"Invalid input before the payment gate: unknown or duplicate query, network other than the live CAIP-2, literal-IP host, or another field error. The error names only the allowed network.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"402":{"description":"Payment required. Body includes sku, priceUsd, x402Version, and accepts.","content":{"application/json":{"schema":{"type":"object","required":["error","sku","priceUsd"],"properties":{"error":{"type":"string"},"sku":{"type":"string","const":"receipt_verify"},"priceUsd":{"type":"number","const":0.001},"x402Version":{"type":"integer"},"accepts":{"type":"array","items":{"type":"object"}}}}}}},"429":{"description":"Rate limit. Returned before the payment gate."}},"x-x402":{"priceUsd":0.001,"network":"eip155:8453","asset":"USDC","mcpTool":"verify_receipt"},"x-payment-info":{"sku":"receipt_verify","price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}],"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","payTo":"0x07066Ea0e66CF277cd279eD7fBCA220ecB41E5a4"}}},"/api/v1/sellers/trust":{"get":{"tags":["paid"],"operationId":"seller_trust","summary":"Observational x402 seller trust score for a payTo and network.","description":"Observational x402 seller trust score for a payTo and network. $0.001 USDC on eip155:8453.","parameters":[{"name":"payTo","in":"query","required":true,"schema":{"type":"string"},"description":"Seller address. Mixed case is accepted and lowercased.","example":"0x07066ea0e66cf277cd279ed7fbca220ecb41e5a4"},{"name":"network","in":"query","required":true,"schema":{"type":"string","enum":["eip155:8453"]},"description":"Must be the literal eip155:8453.","example":"eip155:8453"}],"responses":{"200":{"description":"Paid JSON envelope"},"400":{"description":"Invalid input before the payment gate: unknown or duplicate query, network other than the live CAIP-2, literal-IP host, or another field error. The error names only the allowed network."},"402":{"description":"Payment required. Body includes sku, priceUsd, x402Version, and accepts."},"429":{"description":"Rate limit. Returned before the payment gate."}},"x-x402":{"priceUsd":0.001,"network":"eip155:8453","asset":"USDC","mcpTool":"seller_trust"},"x-payment-info":{"sku":"seller_trust","price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}],"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","payTo":"0x07066Ea0e66CF277cd279eD7fBCA220ecB41E5a4"}}},"/api/v1/api-keys":{"post":{"operationId":"createApiKey","summary":"Request a free API key (email verify)","security":[],"description":"Sends a verify link. Always returns {ok:true} for a valid email. Invalid email is 400. Header-only keys after POST verify. 500 free calls, 60 req/min per key (per isolate). policy_check is not included.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string"},"channel":{"type":"string"},"wants_spend_control":{"type":"boolean"}}},"example":{"email":"builder@example.com","channel":"docs","wants_spend_control":false}}}},"responses":{"200":{"description":"Always {ok:true} when the email is valid."},"400":{"description":"Invalid email."},"404":{"description":"Flag off."},"429":{"description":"Per-IP or per-email-domain limiter (per isolate), or the shared hourly signup cap."},"503":{"description":"RESEND_API_KEY unset. No key minted."}}}},"/api/v1/api-keys/verify":{"get":{"operationId":"confirmApiKeyVerify","summary":"Confirm page for the verify link (no write)","security":[],"description":"HTML confirm form. Does not issue a key. POST the token to issue once.","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"},"example":"verify-token"}],"responses":{"200":{"description":"HTML confirm page. No write."},"404":{"description":"Flag off."}}},"post":{"operationId":"verifyApiKey","summary":"Verify email and receive the plaintext key once","security":[],"description":"Returns the plaintext vokko_ key once. Store it; send Authorization: Bearer vokko_… on paid routes. Never logged in full. Token is single-use and valid for 15 minutes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token"],"properties":{"token":{"type":"string"}}},"example":{"token":"verify-token"}}}},"responses":{"200":{"description":"JSON {key, prefix, plan, calls_limit}. Key shown once."},"400":{"description":"Invalid, expired, or already-used token."},"404":{"description":"Flag off."}}}}}}