{"uid":"cap_15O6yAAdSE4s46Di9N-UN","slug":"postcache-credits-purchase-afb0805e","name":"postcache Credits Purchase","description":"Instagram, Threads and Facebook only take media from a public URL. postcache gives your agent one, checks the file against the platform's rules, and deletes it after the post.","url":"https://postcache.dev/v1/credits?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":{"type":"object","properties":{},"description":"No body needed"},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"key":{"type":"string","description":"API key, shown once"},"credits":{"type":"integer"},"message":{"type":"string"},"payment":{"type":"object","properties":{"method":{"type":"string"},"protocol":{"enum":["x402","mpp"],"type":"string"},"reference":{"type":"string"},"amount_usd":{"type":"string"}}}}}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"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":"$5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8J5TLc6JoVMwp_i401dmt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchase API credits for postcache, receiving an API key used to generate temporary public media URLs for social media posting.","exampleAgentPrompt":"I want to start using postcache so my agent can post images to Instagram and Threads — can you buy a credits package and get me an API key?","exampleUseCases":[{"title":"Onboarding agent for social media automation","prompt":"My agent needs to post images to Instagram automatically. Can you purchase postcache credits and get back an API key so we can start generating public media URLs?"},{"title":"Replenishing credits for active posting bot","prompt":"Our social media bot has run out of postcache credits. Can you buy more credits using our crypto wallet so we can keep posting to Facebook and Threads?"},{"title":"Setting up new brand account pipeline","prompt":"I'm launching a new brand and need my AI agent to post product photos to Instagram — can you get a postcache API key by purchasing credits so the agent can start uploading right away?"}],"resultDescription":"Returns a one-time-shown API key, the number of credits purchased, a confirmation message, and a payment record including method, protocol (x402 or mpp), payment reference, and USD amount paid.","failureModes":["Payment not received or insufficient — no key or credits issued","x402/mpp payment protocol error — transaction rejected","Invalid or malformed request body — 400 error","Network timeout during payment settlement","Duplicate payment attempt — may result in idempotency error"],"whenToPreferThis":"Use this endpoint when an agent needs to obtain a postcache API key and credits for the first time or when replenishing credits. This is the entry-point endpoint for postcache's media URL hosting service, designed for agents that need to post media to Instagram, Threads, or Facebook via a temporary public URL. Prefer this over generic file hosting when you specifically need social-platform-compliant media URLs that auto-delete after posting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T00:30:59.585Z","isFirstParty":false,"canonicalSlug":"postcache-credits-purchase-afb0805e"}