{"uid":"cap_GmuV-iAKKPMVL7a-qRBPE","slug":"0x-swap-allowance-holder-indicative-price-5807afca","name":"0x Swap Allowance Holder Indicative Price","description":"","url":"https://agent.api.0x.org/v1/x402/swap-allowance-holder-price/price","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kE6HuJIV7daKeH9AdNinB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an indicative (non-binding) price quote for a token swap using the 0x Allowance Holder contract","exampleAgentPrompt":"What's the current indicative swap price on 0x for selling 1 ETH to buy USDC on Ethereum mainnet, using the Allowance Holder? I want to see the rate before I commit to anything.","exampleUseCases":[{"title":"Compare token swap rates across sources","prompt":"I'm thinking about swapping 500 USDC for ETH, but I want to see what price 0x would give me first. Can you get me an indicative quote so I can compare it with other DEXs?"},{"title":"Preview DeFi transaction before execution","prompt":"Before I go ahead with my trade, can you show me what I'd get if I swapped 10 DAI for USDT using 0x Allowance Holder? I just want to preview it without locking anything in yet."},{"title":"Check multi-token swap pricing quickly","prompt":"I've got 50 MATIC on Polygon and want to see roughly how much USDC I could get for it using 0x. Give me a quick indicative price so I know if it's worth proceeding."}],"resultDescription":"Returns an indicative price object including the expected output token amount, exchange rate, estimated gas, liquidity sources used, and price impact — without locking in any trade. This is a non-binding quote for informational purposes before the user decides to proceed with a firm quote or execution.","failureModes":["Token pair not supported — returns 400 with unsupported pair error","Invalid or missing required query parameters (sell token, buy token, amount) — returns 400 validation error","Insufficient liquidity for the requested swap size — returns 400 or empty price response","Chain ID not supported — returns 400","Payment not made or x402 payment header missing — returns 402 Payment Required","Rate limiting exceeded — returns 429","Downstream liquidity provider outage — returns 500 or timeout"],"whenToPreferThis":"Use this endpoint when you need a fast, non-binding price estimate for a token swap using the 0x Allowance Holder pattern — ideal for displaying indicative rates in a UI, comparing prices, or deciding whether to proceed to a firm quote. Prefer this over the firm quote endpoint when no commitment is needed yet and you just want to show users an estimated rate. Use the sibling firm quote endpoint when you're ready to execute.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:38:20.006Z","isFirstParty":false}