store

STORE: full-text keyword search over documents you stored...

STORE: full-text keyword search over documents you stored in a namespace, scoped to YOUR wallet. Uses SQLite FTS5 — supports terms, phrases ("..."), AND/OR/NOT, and prefix* matching. Returns hits ranked best-first by BM25 relevance computed ONLY over your own matching documents in that namespace (never other wallets' data), each with body + meta + a score normalized 0–1 relative to the best hit in this result (best = 1). When more than 2000 of your docs match, the 2000 most recently updated are ranked. Searching does NOT extend TTLs. Private to your wallet (the x402 payer).

post/api/store/doc-search

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/store/doc-search
  • Auth: API key in header PAYMENT-SIGNATURE

Request body

nsstring required

Namespace to search.

querystring required

FTS5 query. e.g. invoice AND 2026, "exact phrase", lim*.

limitinteger

Max hits. Default 50, max 1000.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.