In short.
This guide explains Mem0's self-hosted memory API for developers building AI applications, but it requires operating a server and leaves full deployment and upgrade guidance to a separate page. It documents memory creation, retrieval, search, updates, deletion and history, alongside configuration, authentication and dashboard support endpoints. Its most useful integration details are the absence of a /v1/ prefix, different development ports and authentication enabled by default. Some demonstration requests omit authentication headers; prices, licence terms, performance and retrieval quality are not established.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete selected page at [https://docs.mem0.ai/open-source/features/rest-api], including its deployment variants, authentication modes, examples, endpoint tables and notices about setup, upgrades, API prefixes, ports and exposure. Linked pages, repository contents, container images, provider documentation and licence files are excluded. No installation, request, security control, benchmark or production behavior was executed or assessed.
The overview
Identity
The resource is Mem0's REST API Server documentation at [https://docs.mem0.ai/open-source/features/rest-api]. It describes a FastAPI server that exposes Mem0's open-source memory operations over HTTP, allowing applications in different programming languages to use the same memory service.
Here, memories are application records that can be added, searched and managed, rather than computer RAM. The selected resource is a feature guide and API overview; it directs first-time self-hosters and people upgrading older deployments to separate setup documentation.
Assessment
The guide is useful for planning an HTTP integration because it brings endpoint paths, authentication modes, port mappings and example payloads together. The distinction between self-hosted paths and hosted platform paths addresses a concrete source of integration mistakes.
It is less complete as a first deployment tutorial. Repository acquisition, full environment configuration and upgrade instructions are outside this page. Its create-and-search demonstration also omits authentication headers despite authentication being enabled by default, so those snippets need the credentials described elsewhere on the page.
Users
The clearest audience is developers whose services already use REST APIs, teams using languages without a Mem0 SDK, and engineers who want to inspect requests through an OpenAPI browser interface. A shared HTTP service may also suit applications with several components written in different languages.
Beginners get concrete examples and a browser-based explorer, but still need familiarity with environment variables, JSON, containers or Python services, and database connectivity. Experienced developers get details about token refresh, key management, configuration discovery, request logs and memory history.
Capabilities
Documented memory operations include creation, listing, individual retrieval, updates, deletion, history, search and resetting all memories. Listing supports user_id, agent_id and run_id filters. Entity endpoints expose identifier values with memory counts and support deleting an entity's memories.
Configuration endpoints retrieve or change memory settings and list bundled language-model and embedding providers. Authentication endpoints cover initial administrator registration, login, token refresh and account changes. Other routes manage API keys and recent request logs.
Search accepts explain: true to include score_details for returned memories. The page also documents an interactive OpenAPI explorer at /docs and its schema at /openapi.json.
Using it
Requirements
The documented Compose setup uses server/.env with OPENAI_API_KEY and JWT_SECRET. Compose includes PostgreSQL. The direct Python path explicitly assumes PostgreSQL is already reachable through POSTGRES_HOST and POSTGRES_PORT, then uses requirements.txt and Uvicorn.
The server can use configured language models, vector stores and rerankers, but container provider availability is constrained by its bundled dependencies. GET /configure/providers lists bundled language-model and embedding providers; POST /configure rejects unbundled providers with HTTP 400.
The page warns that missing JWT_SECRET causes authentication endpoints to return HTTP 500 when authentication is enabled. Minimum hardware, supported operating systems, Python versions and database versions are not specified.
Mechanism
An application sends HTTP requests containing JSON to the FastAPI server. Creation requests supply messages and an identifier; search requests supply a query and an identifier. The server uses the configured Mem0 components for memory operations. The underlying extraction algorithm and search scoring formula are not explained here.
Protected endpoints accept a JWT, meaning a signed login token, through Authorization: Bearer <access_token>, or an API key through X-API-Key. Per-user keys inherit the creating dashboard user's scope. The legacy ADMIN_API_KEY grants administrator-level access without being tied to a dashboard user.
API key management requires a JWT. Request logs are documented as accepting a JWT or administrator key. The root redirect, /docs and /openapi.json remain open, and /auth/setup-status is explicitly public.
Setup
For the documented development path, prepare server/.env with provider credentials and a generated JWT_SECRET, then run make bootstrap from the server directory. The page says this starts Compose, creates an administrator and issues the first API key. Alternatively, docker compose up -d starts the stack for setup through the browser wizard at [http://localhost:3000].
Compose exposes the API at [http://localhost:8888] by mapping internal port 8000 to host port 8888. Raw Docker and Uvicorn use port 8000 unless remapped. Their OpenAPI explorer is therefore at [http://localhost:8000/docs], while Compose uses [http://localhost:8888/docs].
The page also supplies image-pull, local-build and direct Python instructions. Its pull command names mem0/mem0-api-server, while the run command uses the locally built name mem0-api-server; readers using the pulled image need to account for that difference. Full setup and upgrade guidance is referenced at [https://docs.mem0.ai/open-source/setup], whose contents are outside this resource.
Example
The documented example stores a food preference and searches for it. With a configured server and valid credentials, send POST /memories with Content-Type: application/json, an X-API-Key header and the payload {"messages":[{"role":"user","content":"I love fresh vegetable pizza."}],"user_id":"alice"}. The page describes a creation response containing memory IDs and events such as ADD; no actual response is supplied here.
Then send POST /search with the same authentication header and {"query":"vegetable pizza","user_id":"alice","explain":true}. According to the documentation, explanation mode adds score_details to returned memories. The actual matches, scores and quality are unknown.
Use these paths without a /v1/ prefix. The page's create-and-search snippets omit credentials, so a protected server requires adding the JWT or API key header described in its authentication section. Neither request was executed.
Assessment & evidence
Limitations
No server, container, endpoint or example was run. Installation success, retrieval quality, latency, throughput, persistence and security enforcement are not assessed. The page contains instructions and expected behavior, without observed execution results.
The authentication description establishes per-user key scope but does not fully explain how dashboard identities map to user_id, agent_id and run_id. Detailed authorization behavior for reset, configuration changes and deletion across identifiers is not established.
AUTH_DISABLED=true bypasses authentication entirely, and the documentation restricts it to local development. It recommends HTTPS and private network exposure for deployment. Database backups, recovery procedures, rate limits and detailed log retention are not covered.
Reasoning
The strongest reason to use this approach is the documented ability to access Mem0 from any language that can send HTTP requests. A reasonable architectural inference is that one service can provide a common memory interface to several applications, while introducing another service and database connection to operate.
The authentication and configuration details make the guide useful beyond a basic demonstration. They also show that integration depends on correct credentials, compatible providers and the right API paths. The page does not establish better memory quality, lower costs or higher performance than other approaches.
Alternatives
The page positions REST access as useful when a language lacks a Mem0 SDK or a team prefers HTTP. Its navigation links to Python and Node SDK quickstarts. Direct SDK integration is therefore an option to investigate for those languages, but the linked guides' requirements and behavior are not established here.
The page also distinguishes Mem0's hosted platform API, which uses /v1/ paths, from this self-hosted server. Hosted pricing, feature differences and migration compatibility are unknown. Compose, raw Docker and direct Uvicorn execution are documented deployment options for the same server.
Evidence
The source is the complete captured Mem0 documentation page at [https://docs.mem0.ai/open-source/features/rest-api]. It contains deployment examples, authentication explanations, endpoint tables and suggested verification steps. Those instructions support descriptions of documented functionality, but do not establish successful execution.
The page's notices distinguish self-hosted and hosted API paths, identify the separate setup guide, explain port mappings and warn about authentication configuration. Linked documentation, repository code, container contents and external provider information are outside the available evidence.
Access & freshness
Costs
The page provides no prices, usage allowances, token counts or operating-cost measurements. Total cost is unknown, and describing the implementation as open source does not establish that deployment or model usage is free.
A deployment budget would need to account for server hosting, database and vector storage, and any configured language-model, embedding or reranking services. This is an inference from the documented architecture; the page does not quantify those expenses or establish cost savings.
Rights
The page describes the server as open source and links to the Mem0 GitHub project, but it supplies no licence text or specific licence identifier. Commercial-use permissions, modification conditions and redistribution rights for the software, container image and documentation are therefore unknown from this page.
Terms for configured model providers and rights governing stored application data are also not specified. The open-source label alone does not resolve those separate questions.
Freshness
The page metadata records modification on 16 September 2026 at 11:44:56.902 UTC. The supplied capture is dated 15 November 2026 at 04:47:13.214 UTC. These dates identify the documentation snapshot, rather than a verified server release.
The deployment examples do not pin a container version or source commit. References to older deployments and newer authentication routes do not establish an exact current server version, release cadence or compatibility with a particular installed image.
Actions
Before adopting the server, consult the referenced self-hosted setup guide for the complete environment and upgrade requirements. Confirm the intended image or source version, required provider availability and applicable licence terms. Keep the self-hosted base address and paths distinct from the hosted platform API.
For a local evaluation, keep authentication enabled, configure JWT_SECRET, obtain a per-user API key and authorize the OpenAPI explorer. The page proposes checking reachability, creating a memory, retrieving it and deleting it. Add a representative search and inspect score_details if search explanations matter to the application.
Before wider deployment, establish authorization behavior for the application's identifiers, persistence across restarts and acceptable retrieval quality and latency. Apply the page's HTTPS and network-exposure guidance. These are proposed evaluation steps; their outcomes remain unknown.
