{"uid":"cap_TuHt3Nwq1IbCnZMIPoKKT","slug":"tanship-payai-console-durable-counter-get-5430b258","name":"Tanship PayAI Console — Durable Counter Get","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/durable/counter/get?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.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vUC206EKNjlbx5sDY4QZu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves the current value of a named durable counter via a payment-gated HTTP endpoint using the x402 micropayment protocol on Base/USDC.","exampleAgentPrompt":"Can you fetch the current value of the durable counter named 'page-views' using the Tanship PayAI counter service?","exampleUseCases":[{"title":"Check API request usage counter","prompt":"What is the current count on the durable counter called 'api-requests' in my Tanship PayAI account?"},{"title":"Monitor event occurrence count","prompt":"Fetch the current value of the durable counter named 'user-signups' so I can see how many sign-ups have been tracked so far."},{"title":"Verify counter before triggering action","prompt":"Before I trigger the next workflow step, check the current value of the 'task-completions' counter on Tanship PayAI and tell me the number."}],"resultDescription":"Returns the current integer value (or state) of the specified durable counter, representing how many times it has been incremented or set since creation.","failureModes":["Payment not included or insufficient USDC — returns HTTP 402 with x402 payment-required details","Counter not found — returns an error indicating the counter does not exist","Invalid request body format — returns a validation error if required fields are missing or malformed","Network or server error — returns HTTP 5xx with an error message"],"whenToPreferThis":"Use this endpoint when you need to read a persistent, server-side counter that survives across sessions and requests, and when you are operating in an x402-compatible payment environment with USDC on Base. Prefer this over in-memory counters when durability and cross-agent state sharing are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T18:50:50.429Z","isFirstParty":false,"canonicalSlug":"tanship-payai-console-durable-counter-get-5430b258"}