{"uid":"cap_QFx6wxhPk5yuj0CuEKuvI","slug":"tanship-payai-console-kv-set-424a6c42","name":"Tanship PayAI Console — KV Set","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/kv/set?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.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6y1QzKaqWi0WaiW1BRf7d","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Stores a key-value pair in a payment-gated persistent key-value store via the x402 micropayment protocol","exampleAgentPrompt":"Store the value 'active' under the key 'session_status' in Tanship's KV store — it'll charge $0.003 USDC via x402 on Base.","exampleUseCases":[{"title":"Agent state checkpoint storage","prompt":"Save the current agent state by storing the value 'step3_complete' under the key 'workflow_checkpoint' in Tanship's KV store using my USDC wallet on Base."},{"title":"Feature flag persistence","prompt":"Set the key 'feature_dark_mode' to 'enabled' in the Tanship KV store so my app can retrieve it later."},{"title":"Session token caching","prompt":"Write the token 'tok_abc123' under the key 'user_session_42' to Tanship's remote key-value store — I need it persisted for a few hours."}],"resultDescription":"A confirmation response indicating whether the key-value pair was successfully written to the store. May include the key name, a success status, and metadata about the write operation. Payment of $0.003 USDC on Base (eip155:8453) via x402 v2 is required before the write is processed.","failureModes":["Payment not provided or insufficient USDC — returns HTTP 402 with x402 payment requirements","Invalid JSON body or missing required fields — returns HTTP 400","Key or value exceeds allowed size limits — returns HTTP 413 or 400","Authentication or wallet verification failure — returns HTTP 401","Network or upstream storage error — returns HTTP 500"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use remote key-value write operation and are already operating within the x402 micropayment ecosystem on Base. Ideal for AI agents that need to persist small state values, flags, or tokens without managing a full database, especially when cost-per-write accountability via USDC is desired. Not suited for bulk storage, large payloads, or use cases requiring free or subscription-based storage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T06:34:20.937Z","isFirstParty":false,"canonicalSlug":"tanship-payai-console-kv-set-424a6c42"}