Troubleshooting If requests fail, run or Authentication All requests require an API key passed in the Authorization header: Get your API key from: app.mem0.ai → API Keys → create or copy your key. Environment Variables | Variable | Description | |---|---| | | Mem0 API key (starts with ) | Key Endpoints Base URL: 1. Add a Memory Store a new memory for a user, agent, or session. Write to : Then run: Optional fields alongside : - — scope memory to a specific agent - — scope memory to a specific run/session - — arbitrary key/value pairs to attach to the memory - — set to for structured results wi…