{"uid":"cap_aYcK7jgg7U0Rtib5sGoL1","slug":"tanship-payai-console-x402-db-batch-api-c671c6f9","name":"Tanship PayAI Console — x402 DB Batch 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/batch?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.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WEWq9AfJ5fPVAvhw664Vj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes batch database operations via a payment-gated HTTP endpoint using the x402 USDC micropayment protocol on Base","exampleAgentPrompt":"Run a batch of database operations for me — I need to insert these five user records and update three existing entries all in one call, send the request body as JSON.","exampleUseCases":[{"title":"Bulk user record insertion","prompt":"Insert these 50 new user sign-up records into the database all at once using a single batch POST call with the payload as JSON."},{"title":"Batch analytics event writes","prompt":"I have 30 analytics events I need to write to the database in one go — can you batch them all into a single request and send the body as JSON?"},{"title":"Multi-record status update","prompt":"Update the status field on these 15 order records to 'fulfilled' all at once using a batch database call, passing the updates as a JSON body."}],"resultDescription":"Returns the results of all batched database operations submitted in the request body, typically including success/failure status and any returned data rows for each operation in the batch.","failureModes":["Payment not included or insufficient USDC — returns HTTP 402 requiring x402 v2 payment on Base (eip155:8453)","Malformed request body — missing required fields (type, method, bodyType, body) returns a 400 validation error","Unsupported bodyType value — only 'json', 'form-data', or 'text' accepted","Database operation failure — individual operations within the batch may fail and return partial results or error details","Network timeout if the batch is too large or the database is under load"],"whenToPreferThis":"Choose this endpoint when you need to execute multiple database operations in a single atomic or batched call and want to pay per-use via USDC micropayments on Base using the x402 protocol, avoiding subscription overhead for sporadic workloads.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T00:33:09.592Z","isFirstParty":false,"canonicalSlug":"tanship-payai-console-x402-db-batch-api-c671c6f9"}