memμrondocs
Console
API REFERENCE

Assemble context

Turn search hits, graph links, and collection breadcrumbs into a bounded prompt block with citation IDs.

Requires authentication — a Bearer token or X-Memuron-Actor-Id header.

Body parameters

querystringrequired

kintegeroptional

scopestring[]optional

space_refstringoptional

token_budgetintegeroptional

char_budgetintegeroptional

include_linksbooleanoptional

include_breadcrumbsbooleanoptional

Deterministic assembly — no LLM call. Citations use bracketed IDs like [M1] or [L1].
POST/memuron/context/assemble
curl -X POST https://api.memuron.com/memuron/context/assemble \
  -H "Content-Type: application/json"
200 OK
{
  "status": "success",
  "prompt_text": "Memuron context block…",
  "citations": [{ "citation_id": "M1", "kind": "memory" }],
  "truncated": { "is_truncated": false }
}