Memory API reference
Base URL:https://api.withfoundry.aiAuth:
Authorization: Bearer key_...
All responses use this envelope:
success: false, data with error details, and appropriate HTTP status (4xx/5xx).
Write entries
POST /v1/memory/entries
Write one or more entries into a namespace. Each entry is embedded and indexed for semantic search.
Request body
Response
data
Example
Search
POST /v1/memory/search
Semantic search over a namespace. Returns entries ranked by similarity to the query.
Request body
Response
data
Array of objects:
Example
Get context
POST /v1/memory/context
Run semantic search and return a single formatted context string for use in LLM prompts.
Request body
Response
data
Example