Skip to main content
GET
Get ready-to-inject context

Authorizations

X-API-Key
string
header
required

API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.

Query Parameters

query
string

The user's message. Omit to get recent memory instead.

Maximum string length: 1000
project
string

Current project or repo. Picks that project's in-progress note.

scope
string
Maximum string length: 200
maxTokens
integer
default:600
Required range: 100 <= x <= 4000

Response

200 - application/json

Context block and the structured pieces it was built from.

text
string
required

Ready-to-inject <memcontext> block for a system prompt or hook.

tokens
integer
required

Approximate token count of text.

handoff
object | null
required
preferences
object[]
required
memories
object[]
required