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:

curl "https://api.mem.ai/v1/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."
     }'

The response includes information about the created note:

{
  "request_id": "api-request-0ee24147-b4b7-4469-ba00-4648ea11e860",
  "status": "completed",
  "operations": [
    {
      "type": "created-note",
      "id": "d4e78650-b159-47f2-a634-2c92f980c88d",
      "title": "Research Paper on Quantum Computing by MIT",
      "url": "https://mem.ai/notes/d4e78650-b159-47f2-a634-2c92f980c88d"
    }
    {
      "type": "added-note-to-collection",
      "collection_id": "d4e78650-b159-47f2-a634-2c92f980c88d",
      "collection_title": "Research Papers",
      // ...
    }
  ],
}

Understanding input types and processing

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.

Types of content you can save

Here are some examples of content types Mem It can process:

  • Web pages: Send HTML content for intelligent extraction
  • Meeting transcripts: Extract key points and action items
  • Emails: Capture important information and follow-ups
  • Documents: Process reports, papers, and articles
  • Simple notes: Quickly save ideas or recommendations

Controlling how content is processed

Using instructions

You can guide how Mem processes your content by providing instructions:

curl "https://api.mem.ai/v1/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:

  • Extraction of key points
  • Focus on action items or decisions
  • Organization into categories
  • Highlighting specific types of information

Adding context

Context helps Mem understand how this new information relates to your existing knowledge:

curl "https://api.mem.ai/v1/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"
     }'

Real-world examples

Capturing web research

curl "https://api.mem.ai/v1/mem-it" \
     --header "Content-Type: application/json" \
     --header "Authorization: Bearer $MEM_API_KEY" \
     --data '{
         "input": "<!DOCTYPE html><html><head><title>Market Analysis 2025</title>...</html>",
         "instructions": "Extract key findings and save as a research note",
     }'

Saving meeting insights

curl "https://api.mem.ai/v1/mem-it" \
     --header "Content-Type: application/json" \
     --header "Authorization: Bearer $MEM_API_KEY" \
     --data '{
         "input": "[08:47:19] Kevin: Here's what we learned from user testing...[09:15:22] Meeting ended.",
         "instructions": "Create a summary with action items and decisions",
         "context": "Weekly product planning meeting",
         "timestamp": "2025-04-01T08:47:19Z",
     }'

Quick personal notes

curl "https://api.mem.ai/v1/mem-it" \
     --header "Content-Type: application/json" \
     --header "Authorization: Bearer $MEM_API_KEY" \
     --data '{
         "input": "Check out Atomic Habits by James Clear - recommended by Sarah",
         "instructions": "Add to my reading list"
     }'

Next steps

Check out the full API reference for additional options and capabilities.