{"uid":"cap_UDlpPyRnO7tjL_XFHrdOf","slug":"tanship-payai-console-x402-database-execution-api-3ca98004","name":"Tanship PayAI Console — x402 Database Execution API","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/exec?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.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_gBnIXtQNGPa12zaV__hh_","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":"Executes database queries or commands via a payment-gated HTTP endpoint using the x402 protocol with USDC micropayment on Base","exampleAgentPrompt":"Run this SQL query against the Tanship PayAI database endpoint — SELECT * FROM orders WHERE status = 'pending' — and give me the results. It costs $0.01 USDC per call via x402 on Base.","exampleUseCases":[{"title":"Fetch pending records from database","prompt":"Query the Tanship PayAI db/exec endpoint to get all records from the 'orders' table where status is 'pending', and return the full list to me."},{"title":"Insert new row via paid API","prompt":"Use the Tanship database execution API to insert a new user entry — name 'Alice', email 'alice@example.com' — into the users table, paying $0.01 USDC per call via x402."},{"title":"Automated database polling in agent workflow","prompt":"Every time my agent needs to check for new job queue entries in the jobs table, have it hit the Tanship db/exec endpoint with a SELECT query and return any rows where completed is false."}],"resultDescription":"Returns the result of the database operation — typically a JSON payload containing query results (rows, records), affected row counts, or execution status, depending on the type of command submitted.","failureModes":["Payment not included or insufficient USDC — returns HTTP 402 Payment Required","Malformed input body (missing required fields like type, method, bodyType, body) — returns 400 Bad Request","Invalid SQL or unsupported database command — returns error message in response body","Network or server unavailability — returns 5xx error","Incorrect body type enum value (must be json, form-data, or text) — validation failure"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use database execution access with no subscription commitment, specifically when operating within the x402 micropayment protocol ecosystem on Base (USDC). Ideal for AI agents that need occasional database reads or writes at $0.01 per call, or when building workflows that must stay within a strict cost-per-operation budget using on-chain payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T00:30:21.303Z","isFirstParty":false,"canonicalSlug":"tanship-payai-console-x402-database-execution-api-3ca98004"}