{"uid":"cap_G2pLhF6-qwrSLKrwbaUKR","slug":"hostdefi-api-key-provisioning-via-x402-fca67e21","name":"HostDeFi API Key Provisioning via x402","description":"HostDeFi is a non-custodial Solana DEX. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, no accounts, no custody.","url":"https://hostdefi.com/api/v1/x402/keys","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"plan":"x402agent","quota":5000,"apiKey":"…shown once…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__0pdf8efEBtPsNulSySsx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"5","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Issues a paid API key for the HostDeFi DeFi platform by accepting a $5 USDC x402 micropayment, returning a one-time-shown API key with a 5,000-call quota.","exampleAgentPrompt":"I need programmatic access to HostDeFi's Solana DEX and swap APIs — can you pay the $5 USDC fee using x402 and get me an API key with the x402agent plan?","exampleUseCases":[{"title":"Unlocking automated Solana swap access","prompt":"I want to start making automated token swaps on Solana through HostDeFi — go ahead and pay the $5 USDC via x402 to get me an API key so I can start calling the swap endpoints."},{"title":"No-KYC DeFi API key for a trading bot","prompt":"I'm building a trading bot that needs to route swaps through Jupiter on Solana without any account signup — use x402 to pay HostDeFi $5 USDC and provision me a fresh API key."},{"title":"Accessing token risk grades programmatically","prompt":"I want to pull live token risk grades from HostDeFi in my app — can you handle the $5 USDC x402 payment and get me the API key I'll need? Make sure to save it since it's only shown once."}],"resultDescription":"Returns a JSON object with ok: true, the plan name ('x402agent'), a quota of 5,000 API calls, and the API key string — displayed only once at provisioning time and not retrievable afterward.","failureModes":["Payment not received or x402 payment verification fails — key not issued","Malformed request body missing required fields — 400 error","Duplicate or replayed x402 payment token rejected — key not issued","Downstream payment processor unavailable — 503 or timeout","Quota exhausted on previously issued key — requires new provisioning call"],"whenToPreferThis":"Use this endpoint when you need programmatic access to HostDeFi's Solana DEX, Jupiter swap routing, EVM multi-chain trading, bridging, or token risk grade APIs and want to pay with USDC via the x402 protocol without creating an account or undergoing KYC. Prefer this over traditional API key sign-up flows when operating in a crypto-native, agent-driven environment where x402 micropayments are the preferred auth mechanism.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:41:46.333Z","isFirstParty":false}