Mengram Smart Triggers API

The Smart Triggers API from Mengram — 5 operation(s) for smart triggers.

GitHub OpenAPI

Operations 5

GET /v1/triggers Get Own Triggers #
GET /v1/triggers/{target_user_id} Get Triggers #
POST /v1/triggers/process Process Triggers #
DELETE /v1/triggers/{trigger_id} Dismiss Trigger #
POST /v1/triggers/detect/{target_user_id} Detect Triggers Debug #

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/mengram-io:mengram-io-smart-triggers-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

mengram-io-smart-triggers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mengram Smart Triggers API
  description: '## Human-Like Memory for AI — Semantic + Episodic + Procedural


    The only AI memory API with 3 memory types. Your AI remembers facts, events, and learned workflows.


    ### 3 Memory Types

    - **Semantic** — facts, preferences, skills (entities, relations, knowledge graph)

    - **Episodic** — events, decisions, experiences (what happened, when, outcome)

    - **Procedural** — workflows, processes, habits (learned step-by-step procedures)


    ### Key Features

    - **Cognitive Profile** — one API call generates a system prompt from all memory types

    - **Unified Search** — search across all 3 types simultaneously

    - **Procedure Feedback** — AI learns which workflows succeed

    - **Memory Agents** — autonomous cleanup, pattern detection, weekly digests

    - **Team Sharing** — shared memory across team members

    - **LangChain** — drop-in replacement for ConversationBufferMemory

    - **CrewAI** — 5 tools with procedural learning (agents learn optimal workflows)

    - **OpenClaw** — plugin with auto-recall/capture hooks, 12 tools, and Graph RAG across all channels


    ### Authentication

    All endpoints require `Authorization: Bearer YOUR_API_KEY` header.


    ### Quick Start

    ```python

    from mengram import Mengram

    m = Mengram(api_key="om-...")

    m.add([{"role": "user", "content": "I use Python and Railway"}])

    results = m.search_all("deployment") # semantic + episodic + procedural

    profile = m.get_profile() # instant system prompt

    ```'
  version: 2.49.0
tags:
- name: Smart Triggers
paths:
  /v1/triggers:
    get:
      tags:
      - Smart Triggers
      summary: Get Own Triggers
      description: Get smart triggers for the authenticated user.
      operationId: get_own_triggers_v1_triggers_get
      parameters:
      - name: include_fired
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Fired
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: sub_user_id
        in: query
        required: false
        schema:
          type: string
          default: default
          title: Sub User Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/triggers/{target_user_id}:
    get:
      tags:
      - Smart Triggers
      summary: Get Triggers
      description: Get smart triggers for a specific user (must be your own user_id or a sub_user_id).
      operationId: get_triggers_v1_triggers__target_user_id__get
      parameters:
      - name: target_user_id
        in: path
        required: true
        schema:
          type: string
          title: Target User Id
      - name: include_fired
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Fired
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: sub_user_id
        in: query
        required: false
        schema:
          type: string
          default: default
          title: Sub User Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/triggers/process:
    post:
      tags:
      - Smart Triggers
      summary: Process Triggers
      description: Process pending triggers for the authenticated user only.
      operationId: process_triggers_v1_triggers_process_post
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/triggers/{trigger_id}:
    delete:
      tags:
      - Smart Triggers
      summary: Dismiss Trigger
      description: Dismiss (mark as fired) a specific trigger without sending webhook.
      operationId: dismiss_trigger_v1_triggers__trigger_id__delete
      parameters:
      - name: trigger_id
        in: path
        required: true
        schema:
          type: integer
          title: Trigger Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/triggers/detect/{target_user_id}:
    post:
      tags:
      - Smart Triggers
      summary: Detect Triggers Debug
      description: Manually run trigger detection for the authenticated user. Returns detailed results.
      operationId: detect_triggers_debug_v1_triggers_detect__target_user_id__post
      parameters:
      - name: target_user_id
        in: path
        required: true
        schema:
          type: string
          title: Target User Id
      - name: sub_user_id
        in: query
        required: false
        schema:
          type: string
          default: default
          title: Sub User Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError