Skip to main content

Memory API reference

Base URL: https://api.withfoundry.ai
Auth: Authorization: Bearer key_...
All responses use this envelope:
Errors return 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

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