{"uid":"cap_EuxGEL4Z58nu_WbtTaOyb","slug":"2s-document-store-full-text-search-51fcdec0","name":"2s Document Store Full-Text Search","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-search","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ns":{"type":"string","description":"Namespace to search."},"limit":{"type":"integer","maximum":1000,"minimum":1,"description":"Max hits. Default 50, max 1000."},"query":{"type":"string","minLength":1,"description":"FTS5 query. e.g. `invoice AND 2026`, `\"exact phrase\"`, `lim*`."}}},"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_eLAbxQWWogH0gXzrB_yPU","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":"Performs FTS5 full-text search over a named namespace in the 2s document store, returning ranked matching documents.","exampleAgentPrompt":"Search my 'contracts' namespace in the 2s document store for all documents matching 'renewal AND 2025', returning up to 100 results.","exampleUseCases":[{"title":"Retrieve invoices by keyword","prompt":"Search the 'invoices' namespace for any document containing 'overdue AND 2024' and show me the top 50 hits."},{"title":"Find agent memory by phrase","prompt":"Look through my 'agent-logs' namespace for documents that mention the exact phrase \"task completed\" — give me up to 200 results."},{"title":"Wildcard search across stored notes","prompt":"Search the 'research-notes' namespace for everything matching 'climat*' so I can find all my climate-related notes, limit to 75 results."}],"resultDescription":"Returns a ranked list of matching documents (up to the specified limit, default 50, max 1000) from the specified namespace that satisfy the FTS5 query, including document content and relevance metadata.","failureModes":["Empty namespace or namespace not found returns zero hits","Malformed FTS5 query syntax returns a parse error","Limit out of range (below 1 or above 1000) returns a validation error","Missing required 'query' field returns a 400-style error","No matching documents returns an empty result set"],"whenToPreferThis":"Use this endpoint when you have already stored documents in a 2s namespace and need to retrieve them by content using full-text search with FTS5 syntax (boolean operators, exact phrases, prefix wildcards). Prefer this over generic web search when querying private, agent-owned document stores. It is the right choice for agent memory retrieval, stored knowledge bases, or any corpus you previously uploaded to 2s storage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:01:55.906Z","isFirstParty":false}