{"uid":"cap_B1UNtvoKZeWFru1j4DIgL","slug":"pyfile-x402-secret-store-put-873c5fc7","name":"Pyfile x402 Secret Store (PUT)","description":"Store a secret (credential, token, key) for later retrieval — encrypted at rest (AES-256-GCM). Returns an id + access token; fetch later by id+token. Max 16KB. For agent state that must survive across runs.","url":"https://pyfile-agent.taile3ff35.ts.net:10000/secret/put?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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"queryParams":{"type":"object","properties":{}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json","description":"Output payload format."},"example":{"type":"object","required":["ok","id","access_token"],"properties":{"id":{"type":"string","description":"Secret id; use with the access token to fetch later."},"ok":{"type":"boolean"},"note":{"type":"string"},"access_token":{"type":"string","description":"Bearer token required to read or delete the secret."}}}}}}},"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_9RBgCEYTdUmTiBK8ZM0Nr","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":"Encrypts and stores a secret (credential, token, API key) at rest using AES-256-GCM and returns a unique ID plus access token for later retrieval.","exampleAgentPrompt":"Please securely store this API key for me — 'sk-abc123XYZ987' — encrypted at rest, so you can retrieve it in a future session using the ID and access token you get back.","exampleUseCases":[{"title":"Cross-run API key persistence","prompt":"I need you to save my OpenAI API key 'sk-proj-abcdef123456' encrypted so that next time you start up you can fetch it by ID instead of me having to paste it again."},{"title":"Secure credential handoff between agents","prompt":"Store this database password 'P@ssw0rd!SecureDB42' as an encrypted secret and give me the ID and access token so I can share them with another agent that needs to connect to the database."},{"title":"Preserving OAuth token across agent restarts","prompt":"Encrypt and save this OAuth refresh token 'refresh_tok_xyz9988776' so my agent can grab it later when it needs to reauthenticate — I don't want it stored in plaintext anywhere."}],"resultDescription":"Returns a JSON object with 'ok' (boolean success flag), 'id' (unique secret identifier string), and 'access_token' (bearer token required to read or delete the secret later). Both the id and access_token must be retained to retrieve the secret in a future call.","failureModes":["Payload exceeds 16KB limit — request rejected with error","Missing or malformed input body — 400-level error","Payment failure or insufficient USDC balance — 402 Payment Required","Server unavailable on the Tailscale network — connection error","Secret not stored if access_token is lost — no recovery mechanism"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to persist sensitive credentials, tokens, or keys across multiple runs or sessions without storing them in plaintext. It is ideal for agent-to-agent secret handoff or when an agent's runtime state includes secrets that must survive restarts. Prefer this over in-memory storage or environment variables when AES-256-GCM encryption at rest and a token-gated retrieval mechanism are needed. Best suited for small secrets up to 16KB.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:48:27.423Z","isFirstParty":false,"canonicalSlug":"pyfile-x402-secret-store-put-873c5fc7"}