With the Mem It API, you can save and process any type of content, letting Mem handle organization and extraction automatically. Simply send your content to the API, and Mem transforms it into organized, retrievable knowledge.Here’s a simple example using the Mem It API:
Copy
Ask AI
curl "https://api.mem.ai/v2/mem-it" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer $MEM_API_KEY" \ --data '{ "input": "Check out the new research paper on quantum computing by MIT." }'
Processing occurs in the background and typically completes within minutes. Note that tracking the status of a request isn’t yet supported, but it is planned for a future update!
You can provide almost any type of content to Mem It - from simple text notes to entire web pages or meeting transcripts. Mem It intelligently processes each type of content appropriately.
You can guide how Mem processes your content by providing instructions:
Copy
Ask AI
curl "https://api.mem.ai/v2/mem-it" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer $MEM_API_KEY" \ --data '{ "input": "[08:47:19] Kevin: I think we should prioritize the mobile experience. [08:50:22] Sarah: Agreed, and we need to update the roadmap.", "instructions": "Extract action items and decisions" }'
Without instructions, Mem will use its default processing approach. With instructions, you can specifically request:
Context helps Mem understand how this new information relates to your existing knowledge:
Copy
Ask AI
curl "https://api.mem.ai/v2/mem-it" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer $MEM_API_KEY" \ --data '{ "input": "Let's move the deadline to next Friday and update the stakeholders.", "instructions": "Add this to my action items", "context": "This is related to Project Horizon" }'