{"uid":"cap_v1eiIb7DefqCH6pKtfqUz","slug":"xcache-create-cache-d8922cc5","name":"xCache Create Cache","description":"Create a new cache","url":"https://api.xcache.io/create?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_08SmK2TE3TVhvSHxDbY8o","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a new private cache entry via the xCache instant caching service, billed at $0.50 USDC per call","exampleAgentPrompt":"Store this JSON payload in xCache as a new private cache entry so I can retrieve it later: {\"user\": \"alice\", \"session\": \"abc123\", \"expires\": 3600}.","exampleUseCases":[{"title":"Cache API response for reuse","prompt":"I just got a big response from the weather API and I don't want to keep calling it every few minutes — can you cache that response in xCache so I can pull it back quickly for the next hour?"},{"title":"Store session data temporarily","prompt":"Save this user session object to xCache as a private cache entry so I can retrieve it during the checkout flow: {\"userId\": \"u_9921\", \"cart\": [\"item_42\", \"item_87\"], \"token\": \"sess_xyz789\"}."},{"title":"Persist interim pipeline results","prompt":"I'm running a multi-step data pipeline and I need to save the intermediate results from step two into xCache so the next step can pick them up without recomputing everything from scratch."}],"resultDescription":"Returns a confirmation of the newly created cache entry, including a cache ID or key, access credentials or token, and metadata about the created cache such as expiration time. The agent can use the returned identifier to retrieve or manage the cached data later.","failureModes":["Insufficient USDC balance — payment of $0.50 USDC not fulfilled, returns 402 Payment Required","Invalid or missing cache data in request body — returns 400 Bad Request","Cache service unavailable or overloaded — returns 503 Service Unavailable","Malformed request payload — returns 422 Unprocessable Entity","Authentication/authorization failure — returns 401 Unauthorized","Cache size limit exceeded — returns 413 Payload Too Large"],"whenToPreferThis":"Choose this endpoint when you need to instantly create a private, paid cache entry without managing your own caching infrastructure. Ideal for agents that need ephemeral data storage with guaranteed availability and are already operating within an x402 payment-enabled environment. Prefer over self-hosted Redis or Memcached when low-overhead setup and pay-per-use billing are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T00:31:57.097Z","isFirstParty":false,"canonicalSlug":"xcache-create-cache-d8922cc5"}