{"uid":"cap_7Ud79RQbREgj6wYJCFCe7","slug":"2s-document-store-put-index-document-f4c91cbc","name":"2s Document Store — Put (Index Document)","description":"The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.","url":"https://2s.io/api/store/doc-put","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"id":{"type":"string","description":"Document id within the namespace, up to 256 chars."},"ns":{"type":"string","description":"Namespace to group documents."},"body":{"type":"string","minLength":1,"description":"The text to index, up to 1 MB."},"meta":{"description":"Optional JSON metadata returned with search hits (not indexed). e.g. {\"title\":\"notes\",\"tags\":[\"x\"]}."},"redact":{"type":"boolean","description":"When true, strip secrets from body before storing (deja-vu-style index-time redaction). Default false."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BGQFU3LoVPbgB4ahgqGs1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Store and full-text index a text document within a named namespace, with optional metadata and secret redaction, for later retrieval via search.","exampleAgentPrompt":"Index this article under namespace 'research-notes' with id 'climate-2024-01': 'Global temperatures in 2024 continued to break records across all continents...' — tag it with metadata {\"title\":\"Climate 2024\",\"tags\":[\"climate\",\"research\"]} and strip any secrets before storing.","exampleUseCases":null,"resultDescription":"A confirmation that the document has been stored and indexed in the specified namespace under the given id, ready to be retrieved via subsequent search queries.","failureModes":["Body exceeds 1 MB limit — request rejected","Document id exceeds 256 characters — validation error","Missing required body field — 400 error","Namespace not specified — document may be placed in default or rejected","Payment failure via x402 — call not executed"],"whenToPreferThis":"Use this endpoint when you need to persist and make searchable a text document within a named namespace, especially within the 2s.io ecosystem where sibling search endpoints can later retrieve it. Prefer this over generic object storage when full-text search retrieval is required. Particularly useful for agent memory, knowledge base construction, or document indexing workflows where pay-per-call economics are preferred over subscription storage services.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:01:35.812Z","isFirstParty":false}