# 0x Swap Allowance Holder Quote (Indicative)

> 0x Swap Allowance Holder Quote (Indicative) is a paid API for AI agents from agent.api.0x.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-10).

Returns an indicative swap quote using the 0x Allowance Holder contract, including price, fees, gas estimates, and route details for a token swap.

## Facts

- Endpoint: GET https://agent.api.0x.org/v1/x402/swap-allowance-holder-quote/%7Bpath%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/0x-swap-allowance-holder-quote-indicative-7bc0fb8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Lsnsv5ACv0KXiqRpGNH-Y

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 0x-swap-allowance-holder-quote-indicative-7bc0fb8e
```

Example prompt: What's the indicative 0x swap quote to sell 1 ETH for USDC on Ethereum — show me the expected buy amount, gas fees, and the allowance target address I'd need to approve?

## When to prefer this

Use this endpoint when you need a fast, non-binding indicative swap price from 0x using the Allowance Holder pattern — ideal for showing users a price preview before committing to a firm quote. Prefer this over the firm quote endpoint when you want to check liquidity or estimate fees without locking in execution. Choose 0x over generic DEX interfaces when you want aggregated liquidity routing and transparent fee breakdowns.

## Known failure modes

- Liquidity unavailable for the requested token pair — liquidityAvailable returns false
- Invalid or unsupported token address in query params — returns 4xx error
- Missing required query parameters such as sellToken, buyToken, or sellAmount — returns validation error
- Network congestion or RPC issues causing delayed or stale quotes
- Payment not included or insufficient — x402 payment required error (402)

## How this service works

API proxy for 0x

## Output

Returns a JSON object containing the expected buy amount, sell amount, gas price, gas fee, total network fee, minimum buy amount, zero ex fee, integrator fees, allowance target address, swap route, token metadata, liquidity availability flag, and the block number at quote time.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "gas": "",
  "zid": "",
  "fees": {},
  "route": {},
  "gasFee": {},
  "issues": {},
  "buyToken": "",
  "gasPrice": "",
  "buyAmount": "",
  "sellToken": "",
  "zeroExFee": {},
  "sellAmount": "",
  "blockNumber": "",
  "minBuyAmount": "",
  "tokenMetadata": {},
  "integratorFees": [],
  "allowanceTarget": "",
  "totalNetworkFee": "",
  "liquidityAvailable": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/0x-swap-allowance-holder-quote-indicative-7bc0fb8e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.api.0x.org](https://www.zero.xyz/host/agent.api.0x.org/llms.txt)
