> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mem.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Mem It



## OpenAPI

````yaml POST /v2/mem-it
openapi: 3.1.0
info:
  title: Mem API
  description: An API that allows you to interact with the Mem platform.
  version: 1.0.0
servers:
  - url: https://api.mem.ai
security:
  - bearerAuth: []
paths:
  /v2/mem-it:
    post:
      tags:
        - external
        - external-v2
      summary: Mem It
      operationId: app_src_api_routes_external_v2_mem_it_views_mem_it
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemItRequestSchema'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemItResponseSchema'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl "https://api.mem.ai/v2/mem-it" \
                 --header "Content-Type: application/json" \
                 --header "Authorization: Bearer $MEM_API_KEY" \
                 --data '{
                     "input": "<!DOCTYPE html><html><head><title>AI Trends 2025</title>...</html>",
                     "instructions": "Extract the key findings and save as a research note",
                 }'
components:
  schemas:
    MemItRequestSchema:
      properties:
        input:
          description: >-
            Any raw content you want to remember - web pages, emails,
            transcripts, articles, or simple text.


            Common Use Cases:

            • HTML from a webpage

            • Email text (including headers)

            • Meeting transcript

            • Text from a document

            • Simple notes or thoughts


            Examples:

            • "<!DOCTYPE html><html><head><title>AI Trends
            2025</title>...</html>"

            • "[08:47:19] Kevin: Hello...[09:15:22] Meeting ended."

            • "Check out Atomic Habits by James Clear - recommended by Sarah"


            Maximum of ~1M characters (~1 MB).
          maxLength: 1000000
          title: Input
          type: string
        instructions:
          anyOf:
            - maxLength: 10000
              type: string
            - type: 'null'
          description: >-
            Optional guidance on how you want this information processed or
            remembered.


            Examples:

            • "Extract the key findings and save as a research note"

            • "Create a summary with action items and decisions"

            • "Add to my reading list"


            Maximum size: approximately 10 KB.
          title: Instructions
        context:
          anyOf:
            - maxLength: 10000
              type: string
            - type: 'null'
          description: >-
            Additional background information that helps Mem understand how this
            input relates to your existing knowledge.


            Examples:

            • "This is related to my Project Alpha research"

            • "This is from the quarterly planning meeting"

            • "This is a follow-up to our discussion yesterday"


            Maximum of ~10k characters.
          title: Context
        timestamp:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          description: >-
            When this information was encountered or created (ISO 8601 datetime
            string). Defaults to the current date and time.


            Example:

            • "2025-04-01T14:30:45Z"

            • "2023-12-15T09:45:30+01:00"


            Maximum of ~10k characters.
          title: Timestamp
      required:
        - input
      title: MemItRequestSchema
      type: object
    MemItResponseSchema:
      example:
        request_id: api-request-036ed6c7-de00-459f-a89b-43d26aafe522
      properties:
        request_id:
          title: Request Id
          type: string
      required:
        - request_id
      title: MemItResponseSchema
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````