{"uid":"cap_kXhXfL1Ak-YDpa3bihtB4","slug":"tanship-payai-console-database-query-api-x402-3b0a06df","name":"Tanship PayAI Console — Database Query API (x402)","description":"Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.","url":"https://x402.tanship.dev/v1/db/query?utm_source=zero.xyz","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":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sf7mccNgxUSoBNHAZ550k","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a database query via a payment-gated HTTP POST endpoint requiring USDC micropayment on Base via x402 protocol","exampleAgentPrompt":"Run a database query against the Tanship PayAI database — submit my JSON query body as a POST and pay the $0.005 USDC fee automatically via x402 on Base.","exampleUseCases":[{"title":"Pay-per-query AI data retrieval","prompt":"Query the Tanship database for all records matching my filter criteria — send the query as JSON and pay the 0.005 USDC x402 fee on Base automatically."},{"title":"Agent-driven database lookup","prompt":"I need to fetch some data from the Tanship PayAI database right now — can you POST my query payload and handle the USDC micropayment via x402?"},{"title":"Automated data pipeline with micropayments","prompt":"Every time my workflow needs fresh data, hit the Tanship /v1/db/query endpoint with the query body I give you and pay the 0.005 USDC toll using x402 on Base."}],"resultDescription":"Returns the result set of the database query as a JSON response, delivered after successful x402 USDC payment verification on Base (eip155:8453). The exact schema of results depends on the query submitted.","failureModes":["Payment not provided or insufficient USDC — 402 Payment Required response","Invalid x402 payment scheme or wrong network (not Base eip155:8453) — payment rejected","Malformed JSON body or missing required 'input' field — 400 Bad Request","Query references non-existent table or malformed query syntax — database error response","Network timeout or upstream DB unavailability — 503 or timeout error","Insufficient USDC balance in agent wallet — payment failure"],"whenToPreferThis":"Choose this endpoint when you need pay-per-query access to the Tanship database and your agent supports the x402 micropayment protocol with USDC on Base. It is ideal for AI agents that need to retrieve structured data on demand without a subscription, paying only $0.005 per query. Prefer this over subscription APIs when query volume is low or unpredictable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T18:42:08.557Z","isFirstParty":false,"canonicalSlug":"tanship-payai-console-database-query-api-x402-3b0a06df"}