{"uid":"cap_Qq2TM9FdcbyMax6ltpFNo","slug":"loki-freedomlab-space-key-value-store-put-41e93df6","name":"loki.freedomlab.space Key-Value Store (PUT)","description":"Durable memory for stateless agents: PUT a JSON value under a key, GET it back anytime for 30 days. Useful between runs when you have no persistent disk of your own.","url":"https://loki.freedomlab.space/x402/kv/put/:key","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oLT-qbg2XpP7yk2Ag0R6m","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Stores a JSON value under a named key for 30 days, enabling stateless agents to persist state between runs.","exampleAgentPrompt":"Save this JSON object under the key 'user-prefs-42' so you can retrieve it next time we run: {\"theme\": \"dark\", \"language\": \"en\", \"notifications\": true}.","exampleUseCases":[{"title":"Persist agent session state","prompt":"Store the current progress of my data pipeline under the key 'pipeline-run-2024-06-01' so the agent can resume from where it left off next time it starts."},{"title":"Cache API response for later use","prompt":"Save the token prices you just fetched under the key 'token-snapshot-latest' as a JSON object so I can retrieve them in the next run without calling the price API again."},{"title":"Share data between agent steps","prompt":"Write this parsed user profile JSON under the key 'onboarding-user-99' so the next stage of the workflow can pick it up and continue processing."}],"resultDescription":"A confirmation that the JSON value has been stored under the specified key, with the key name and an indication that the data will be available for retrieval for up to 30 days.","failureModes":["Invalid or missing key name returns an error","Malformed JSON payload causes a rejection","Key exceeds allowed length or contains forbidden characters","Payment of 0.001 USDC not completed triggers a payment-required error","Data too large for the store returns a payload-too-large error","Attempting to store after the 30-day window on an existing key may silently overwrite"],"whenToPreferThis":"Choose this endpoint when your agent is stateless and needs a simple, low-cost way to persist a JSON value between runs without operating your own database or file storage. It is ideal for inter-run state passing, caching API results, or sharing data between pipeline steps, especially within the loki.freedomlab.space ecosystem where you may also use sibling endpoints for retrieval.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:35:43.287Z","isFirstParty":false}