MemoryPlugin Chat History API

The Chat History API from MemoryPlugin — 1 operation(s) for chat history.

GitHub OpenAPI

Operations 1

POST /api/chat-history/inject Fetch context from users chat history #

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-chat-history-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-chat-history-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MemoryPlugin Chat History API
  version: 1.0.0
  description: API for managing and querying user memories
servers:
- url: https://www.memoryplugin.com
tags:
- name: Chat History
paths:
  /api/chat-history/inject:
    post:
      summary: Fetch context from users chat history
      operationId: ChatHistoryInject
      x-openai-isConsequential: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatHistoryInjectRequest'
      responses:
        '200':
          description: Injection payload with context and metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatHistoryInjectResponse'
        '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:
      - Chat History
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        text:
          type: string
        score:
          type: number
    ChatHistoryInjectRequest:
      type: object
      properties:
        query:
          type: string
          description: The user's current input used to search chat history for relevant context
        conversationContext:
          type: string
          description: Optional short context string from the current conversation to help retrieval
        maxTokens:
          type: integer
          minimum: 1
          maximum: 2000
          default: 600
          description: Maximum tokens for injected content (hard cap 2000)
      required:
      - query
    ChatHistoryInjectionSource:
      type: object
      properties:
        conversationId:
          type: string
        conversationTitle:
          type: string
        messageId:
          type: string
        date:
          type: string
        relevanceScore:
          type: number
    ChatHistoryInjectResponse:
      type: object
      properties:
        content:
          type: string
        sources:
          type: array
          items:
            $ref: '#/components/schemas/ChatHistoryInjectionSource'
        tokenCount:
          type: integer
        message:
          type: string
        processingTime:
          type: string
          description: Human-readable processing time, e.g. '123ms'
        model:
          type: string
        timingBreakdown:
          type: object
          additionalProperties: true
        chunking:
          type:
          - string
          - 'null'
          enum:
          - cross
          - per-message
          - null
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer