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

# Set or close the in-progress note

> Each project has one open in-progress note. A new note replaces the previous one (history is
kept and no extra memory slot is used). Send `done: true` to close it. Notes expire after 14 days.
Saving `In progress: …` through `POST /api/memories` or the `save_memory` MCP tool does the same.




## OpenAPI

````yaml /openapi.yaml put /api/memories/handoff
openapi: 3.1.0
info:
  title: MemContext API
  version: 1.1.0
  description: |
    REST API for persistent, evolving AI memory. Save, search, and manage
    memories with automatic deduplication, version chains, and hybrid retrieval.
servers:
  - url: https://api.memcontext.in
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Memories
    description: Save, search, list, update, and delete memories.
  - name: History
    description: Inspect how memories evolve over time.
  - name: Feedback
    description: Rate retrieval quality to improve future results.
  - name: Profiles
    description: Pre-aggregated user context from memory.
  - name: Workspaces
    description: >-
      Company/team account boundaries for billing, members, API keys, and
      vaults.
  - name: API Keys
    description: Workspace-bound API keys for server-side integrations.
  - name: Subscription
    description: Workspace-owned billing and member-memory limits.
  - name: Context Vault
    description: Document ingestion and workspace RAG retrieval.
paths:
  /api/memories/handoff:
    put:
      tags:
        - Memories
      summary: Set or close the in-progress note
      description: >
        Each project has one open in-progress note. A new note replaces the
        previous one (history is

        kept and no extra memory slot is used). Send `done: true` to close it.
        Notes expire after 14 days.

        Saving `In progress: …` through `POST /api/memories` or the
        `save_memory` MCP tool does the same.
      operationId: setHandoff
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                  maxLength: 4000
                done:
                  type: boolean
                project:
                  type: string
                scope:
                  type: string
                client:
                  type: string
      responses:
        '200':
          description: Result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetHandoffResponse'
components:
  schemas:
    SetHandoffResponse:
      type: object
      required:
        - status
        - handoff
      properties:
        status:
          type: string
          enum:
            - saved
            - updated
            - closed
            - none
        handoff:
          allOf:
            - $ref: '#/components/schemas/HandoffNote'
          nullable: true
        redacted:
          type: integer
    HandoffNote:
      type: object
      required:
        - id
        - content
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        content:
          type: string
        project:
          type: string
        scope:
          type: string
        client:
          type: string
        createdAt:
          type: string
          format: date-time
        validUntil:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        API key created from the MemContext dashboard. Keys are prefixed with
        `mc_`, bound to one workspace, and API-key requests cannot override that
        workspace.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.