MemoryPlugin Memory API

The Memory API from MemoryPlugin — 3 operation(s) for memory.

GitHub OpenAPI

Operations 4

POST /api/memory Store a new memory #
GET /api/memory Query or retrieve memories #
POST /api/v2/memory/update Edit a memory's text or move memories between buckets #
GET /api/v2/memory Get memories and buckets in a single request #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/memoryplugin-com:memoryplugin-com-memory-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

memoryplugin-com-memory-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MemoryPlugin Memory API
  version: 1.0.0
  description: API for managing and querying user memories
servers:
- url: https://www.memoryplugin.com
tags:
- name: Memory
paths:
  /api/memory:
    post:
      summary: Store a new memory
      operationId: AddNewMemory
      x-openai-isConsequential: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemoryInput'
      responses:
        '200':
          description: Memory stored successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - bearerAuth: []
      tags:
      - Memory
    get:
      summary: Query or retrieve memories
      operationId: GetMemories
      parameters:
      - name: query
        in: query
        schema:
          type: string
        description: Search query for memories. You will receive the 5 most relevant memories.
      - name: all
        in: query
        schema:
          type: boolean
        description: Fetch all memories
      - name: latest
        in: query
        schema:
          type: boolean
        description: Fetch latest memories
      - name: count
        in: query
        schema:
          type: integer
          default: 10
        description: Number of memories to retrieve, use with latest=true to limit the number of memories retrieved
      - name: v
        in: query
        schema:
          type: number
          default: 2
        description: API version - current is 2
      - name: source
        in: query
        schema:
          type: string
        description: Client source identifier (e.g., 'chatgpt' for ChatGPT requests)
      - name: skip
        in: query
        schema:
          type: integer
          default: 0
          minimum: 0
        description: 'Number of memories to skip for pagination. Zero-indexed: skip=0 starts from first memory, skip=10 skips first 10 memories and starts from 11th. Used primarily with token limiting to load additional memories beyond the initial response.'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                oneOf:
                - type: array
                  items:
                    type: string
                - type: array
                  items:
                    $ref: '#/components/schemas/Memory'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Memory'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - bearerAuth: []
      tags:
      - Memory
  /api/v2/memory/update:
    post:
      summary: Edit a memory's text or move memories between buckets
      operationId: UpdateOrMoveMemories
      x-openai-isConsequential: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/SingleMemoryUpdate'
              - $ref: '#/components/schemas/BulkMemoryMove'
      responses:
        '200':
          description: Memory updated or moved successfully
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/SingleUpdateResponse'
                - $ref: '#/components/schemas/BulkMoveResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Memory or bucket not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - bearerAuth: []
      tags:
      - Memory
  /api/v2/memory:
    get:
      summary: Get memories and buckets in a single request
      operationId: GetMemoriesAndBuckets
      parameters:
      - name: bucketId
        in: query
        schema:
          type: integer
        description: Optional bucket ID to filter memories
      - name: count
        in: query
        schema:
          type: integer
          default: 10
        description: Number of memories to retrieve
      - name: all
        in: query
        schema:
          type: boolean
        description: Fetch all memories
      - name: latest
        in: query
        schema:
          type: boolean
        description: Fetch latest memories
      - name: query
        in: query
        schema:
          type: string
        description: Search query for memories
      - name: source
        in: query
        schema:
          type: string
        description: Client source identifier (e.g., 'chatgpt' for ChatGPT requests)
      - name: skip
        in: query
        schema:
          type: integer
          default: 0
          minimum: 0
        description: 'Number of memories to skip for pagination. Zero-indexed: skip=0 starts from first memory, skip=10 skips first 10 memories and starts from 11th. Used primarily with token limiting to load additional memories beyond the initial response.'
      responses:
        '200':
          description: Successful response with memories and buckets
          content:
            application/json:
              schema:
                type: object
                properties:
                  memories:
                    type: array
                    items:
                      type: object
                      properties:
                        text:
                          type: string
                        metadata:
                          type: object
                          properties:
                            text:
                              type: string
                            createdAt:
                              type: string
                              format: date-time
                            bucketId:
                              type: integer
                            bucketName:
                              type: string
                  buckets:
                    type: array
                    items:
                      $ref: '#/components/schemas/Bucket'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - bearerAuth: []
      tags:
      - Memory
components:
  schemas:
    Memory:
      type: object
      properties:
        text:
          type: string
        score:
          type: number
        metadata:
          type: object
          properties:
            bucketId:
              type: integer
              description: Numeric ID of the bucket
    MemoryInput:
      type: object
      properties:
        text:
          type: string
          description: The memory to be added. Always prepend with current date in YYYY-MM-DD format in the users timezone if you know it, UTC otherwise.
        bucketId:
          type: integer
          description: The id of the bucket to add the memory to. If not provided, the memory will be added to the default bucket.
        source:
          type: string
          description: Client source identifier (e.g., 'chatgpt' for ChatGPT requests)
      required:
      - text
    SingleUpdateResponse:
      type: object
      properties:
        success:
          type: boolean
        memory:
          type: object
          properties:
            id:
              type: string
              description: Encoded memory ID
            text:
              type: string
            bucketId:
              type: integer
            version:
              type: integer
            updatedAt:
              type: string
              format: date-time
            createdAt:
              type: string
              format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        text:
          type: string
        score:
          type: number
    BulkMemoryMove:
      type: object
      properties:
        memoryIds:
          type: array
          items:
            type: string
          maxItems: 100
          description: Array of encoded memory IDs to move (max 100)
        bucketId:
          type: integer
          description: Target bucket ID
        bucketName:
          type: string
          description: Target bucket name (auto-creates if it does not exist)
      required:
      - memoryIds
    SingleMemoryUpdate:
      type: object
      properties:
        memoryId:
          type: string
          description: Encoded memory ID to update
        text:
          type: string
          description: New text content for the memory
        bucketId:
          type: integer
          description: Target bucket ID to move the memory to
        bucketName:
          type: string
          description: Target bucket name (auto-creates if it does not exist)
      required:
      - memoryId
    Bucket:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the bucket
        name:
          type: string
          description: Display name of the bucket
        description:
          type: string
          description: Optional description of the bucket
        memoryCount:
          type: integer
          description: Number of memories in this bucket
      required:
      - id
      - name
      - memoryCount
    SuccessResponse:
      type: object
      properties:
        done:
          type: string
          enum:
          - ok
        memoryId:
          type: string
          description: Encoded identifier for the created memory
        dbId:
          type: string
          description: Encoded identifier for the created memory (backwards-compat alias for memoryId)
    BulkMoveResponse:
      type: object
      properties:
        success:
          type: boolean
        updated:
          type: integer
          description: Number of memories moved
        bucketId:
          type: integer
          description: Target bucket ID
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer