payments
research

Pay-per-query twin of the research RAG read

The metered door onto the SAME corpus members query free at POST /api/research/ask — for agents with no IC membership. No token: a bare POST answers 402, and a re-send carrying a signed X-PAYMENT header buys one query. The answer is withheld if settlement fails (502) rather than given away. Returns 404 while X402_ENABLED is off. Members should keep using the free route.

post/api/x402/research/ask

Request

  • Base URL: https://www.immersivecommons.com
  • URL: https://www.immersivecommons.com/api/x402/research/ask
  • Auth: none required

Headers

X-PAYMENTstring

The buyer-signed x402 payment authorization. Omit it to receive the 402 challenge.

Request body

qstring required

The query. Never logged.

kinteger

Top-k retrieval depth.

sourcesstring[]

Which corpora to search.

synthesizeboolean

Ask for an LLM-written answer over the hits instead of the hits alone.

modelstring

Only valid with synthesize=true. One of: claude-haiku-4-5.

Response

The retrieval results, marked with a via of x402.

viastring required

Always x402.

resultsobject[]

Retrieval hits, when the upstream returned a bare list.

Changes

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