Surface envelope
- REST returns the payload directly.
- MCP returns the same payload inside
result.structuredContent. - Skills and plugins should return the same payload object.
Search response
Search has two response modes:- default compact mode with
raw: falseor omitted, which is better when you want to send the response directly to an LLM - raw mode with
raw: true, which is better when you want to process the response programmatically and preserve the original search graph
llmmeans the compact mode. For REST, omitrawor send"raw": false.fullmeans the raw machine-readable mode. For REST, send"raw": true.
POST /search with viewIds when you need to choose between llm and full response modes. POST /execute-view-search returns the full shape directly.
Compact search response (raw: false, default)
results array with a slim top-level contract:
- top-level
type,url,createdAt,title?, andtextstay consistent across content types mediais opt-in per content type and only includes slim entries such asimageDescription, chunkedtranscriptChunks, and imageassetUrls- web HTML is precompiled into markdown-like text
- annotation text is precompiled with references resolved inline
- annotation references resolve selector text/timestamps plus source title and summary into YAML blocks
user_notescontains annotations attached to the matched content entity whenincludeNotesistrue- annotation-shaped compact results and
user_notescan both expose a compactreferencesobject for directly referenced content - compact
raw=falseoutput omits chunk matches, extra entities, and other raw search scaffolding
Raw search response (raw: true)
referencesByResultIdmaps content and tag relationships by entity ID- when
includeNotesistrue, each matched result can exposeannotations - each annotation in
annotationsincludesresolvedReferencesfor direct reference entities - each annotation can also include
references, which returns the direct reference entities inline - if one of those direct references is itself an annotation, that nested annotation gets its own
referencesone level deep
reference_content_idsmemex-referencenodes inside annotation JSON content or chat-thread message JSON content
references field can describe:
- annotations attached directly to a matched content entity through
includeNotes - annotations or other entities directly referenced inside annotation content
- annotations or other entities directly referenced inside chat-thread message content
usageMicrosCharged reports the dollar-denominated usage micros consumed by that search request. 1,000,000 micros equals $1.00. Search currently reports 0.
Compact raw=false search defaults reranking on when the query is eligible for rerank. Raw raw=true search defaults reranking off unless enableRerank is explicitly set to true.
Compact example
Raw example
Save response
save-content-entity responses include related entities:
responseMode: 'receipt' is passed, save-content-entity returns after the content processing request is queued:
save-content-by-url responses use this shape:
Shared supporting shapes
url whenever it can derive a stable reference URL from the saved entity, including tweets, YouTube videos, Reddit posts, images, and other non-web items.
Content type shapes
Web
YouTube
Image
Other content entities
referencedEntities and some search results can contain additional Memex entity types:
Upgrade options shape
When Memex cannot charge a search request,upgradeOptions follows this shape:
Related docs
- Endpoint input shapes: Available endpoints
- Auth and setup: Authentication
- Usage-balance handling: Buy usage balance

