POST /route
Routing
POST /route
Paid routing — pay $0.01 USDC and get an end-to-end answer.
POST
POST /route
This endpoint is x402-gated. Free-tier users (10/day) should POST to
/ using A2A JSON-RPC — same routing logic, no payment required.What happens
- First call returns
402 Payment Requiredwith x402 accepts list ($0.01 USDC on Base) - x402 client signs a transferWithAuthorization and retries with
X-PAYMENTheader - CDP facilitator verifies, settles on-chain, forwards to the handler
- Graph Advocate routes the query, picks the best service, generates the GraphQL, and — when possible — executes it and returns live data
Request body
params.message.parts[].text.
Response shape
execution_result — Graph Advocate didn’t just tell you where to look, it ran the query for you.
What to do with the response
gqlis production-ready GraphQL — paste it as-is into your client or the Graph gateway, no edits needed.subgraph_idis the deployment ID; combine withhttps://gateway.thegraph.com/api/subgraphs/id/{subgraph_id}to query directly.curl_exampleis a complete working request you can run in a terminal — useful for sanity-checking before wiring up your client.execution_result(when present) is already the answer; no follow-up call needed.
execution_result is missing, fire the curl_example against the Graph gateway with your own API key (free tier available). The gql is always live-tested before being returned.
Pricing
| Tier | Quota | Cost |
|---|---|---|
| Free | 10 queries / sender / day | $0 (hit POST /, not /route) |
| Paid | Unlimited | $0.01 USDC on Base per call |
| Priority | Same as paid | Higher-ranked response, full search context |