store

STORE: index a text document for full-text keyword search...

STORE: index a text document for full-text keyword search, scoped to YOUR wallet. Store body text (up to 1 MB) under an id with optional JSON meta; later find it with store.doc-search (SQLite FTS5 keyword ranking). Re-putting the same id replaces it. Kept on a rolling 90-day window. Private to your wallet (the x402 payer) — no account or API key. Pass redact=true to strip secrets (API keys, tokens, JWTs, private keys — see text.redact) from the body BEFORE it is stored, so agent memory never persists plaintext credentials; the response reports how many were removed.

post/api/store/doc-put

Request

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

Request body

nsstring required

Namespace to group documents.

idstring required

Document id within the namespace, up to 256 chars.

bodystring required

The text to index, up to 1 MB.

metaunknown
redactboolean

When true, strip secrets from body before storing (deja-vu-style index-time redaction). Default false.

Response

(unresolved $ref)

Changes

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