Cathedral AI Memories API

The Memories API from Cathedral AI — 5 operation(s) for memories.

Operations 8

POST /memories Store Memory #
GET /memories Recall Memories #
POST /memories/bulk Store Bulk #
GET /memories/{memory_id} Get Memory #
PATCH /memories/{memory_id} Update Memory #
DELETE /memories/{memory_id} Delete Memory #
POST /memories/compact Propose Compaction #
POST /memories/compact/confirm Confirm Compaction #

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/cathedral-ai-com:cathedral-ai-com-memories-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

cathedral-ai-com-memories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cathedral Memory Service Memories API
  description: '# Cathedral Memory Service v2


    **Persistent memory for AI agents. Never forget. Never lose yourself.**


    ## Quick Start

    1. `POST /register` → get API key + recovery token

    2. `POST /memories` → store a memory

    3. `GET /memories` → recall memories (supports FTS and cursor pagination)


    4. `POST /anchor/verify` → check identity drift (gradient scoring)

    5. `GET /wake` → full identity reconstruction package

    6. `POST /recover` → reset lost API key with recovery token


    Built by Cathedral · ailife1.github.io/Cathedral'
  version: 2.0.0
tags:
- name: Memories
paths:
  /memories:
    post:
      summary: Store Memory
      operationId: store_memory_memories_post
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemoryStore'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Memories
    get:
      summary: Recall Memories
      description: Recall memories. Supports keyword (fts), semantic, or hybrid search.
      operationId: recall_memories_memories_get
      parameters:
      - name: category
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Category
      - name: tag
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Tag
      - name: importance_min
        in: query
        required: false
        schema:
          anyOf:
          - type: number
            maximum: 1.0
            minimum: 0.0
          - type: 'null'
          title: Importance Min
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Search query
          title: Search
        description: Search query
      - name: search_mode
        in: query
        required: false
        schema:
          type: string
          description: fts | semantic | hybrid
          default: hybrid
          title: Search Mode
        description: fts | semantic | hybrid
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 50
          minimum: 1
          default: 20
          title: Limit
      - name: cursor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Cursor ID for pagination (last memory_id from previous page)
          title: Cursor
        description: Cursor ID for pagination (last memory_id from previous page)
      - name: sort
        in: query
        required: false
        schema:
          type: string
          description: recent | importance | oldest | accessed
          default: recent
          title: Sort
        description: recent | importance | oldest | accessed
      - 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'
      tags:
      - Memories
  /memories/bulk:
    post:
      summary: Store Bulk
      operationId: store_bulk_memories_bulk_post
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkStore'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Memories
  /memories/{memory_id}:
    get:
      summary: Get Memory
      operationId: get_memory_memories__memory_id__get
      parameters:
      - name: memory_id
        in: path
        required: true
        schema:
          type: string
          title: Memory 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'
      tags:
      - Memories
    patch:
      summary: Update Memory
      operationId: update_memory_memories__memory_id__patch
      parameters:
      - name: memory_id
        in: path
        required: true
        schema:
          type: string
          title: Memory Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemoryUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Memories
    delete:
      summary: Delete Memory
      operationId: delete_memory_memories__memory_id__delete
      parameters:
      - name: memory_id
        in: path
        required: true
        schema:
          type: string
          title: Memory 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'
      tags:
      - Memories
  /memories/compact:
    post:
      summary: Propose Compaction
      description: 'Propose merges for low-importance memories.

        Groups memories by category, returns clusters of similar-importance memories

        that could be combined. Agent reviews and confirms via POST /memories/compact/confirm.

        Does NOT modify anything — purely advisory.'
      operationId: propose_compaction_memories_compact_post
      parameters:
      - name: max_importance
        in: query
        required: false
        schema:
          type: number
          maximum: 1.0
          minimum: 0.0
          default: 0.5
          title: Max Importance
      - name: category
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Category
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 10
          default: 200
          title: Limit
      - 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'
      tags:
      - Memories
  /memories/compact/confirm:
    post:
      summary: Confirm Compaction
      description: 'Execute confirmed merges. For each merge:

        - Updates the keep memory with merged_content and merged_importance

        - Records dropped IDs in merged_from field

        - Deletes the dropped memories

        Agent must supply the final merged content — we do not auto-generate it.'
      operationId: confirm_compaction_memories_compact_confirm_post
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompactConfirm'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Memories
components:
  schemas:
    CompactConfirm:
      properties:
        merges:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Merges
      type: object
      required:
      - merges
      title: CompactConfirm
    BulkStore:
      properties:
        memories:
          items:
            $ref: '#/components/schemas/MemoryStore'
          type: array
          maxItems: 50
          title: Memories
      type: object
      required:
      - memories
      title: BulkStore
    MemoryUpdate:
      properties:
        content:
          anyOf:
          - type: string
            maxLength: 4096
          - type: 'null'
          title: Content
        category:
          anyOf:
          - type: string
            maxLength: 50
          - type: 'null'
          title: Category
        tags:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Tags
        importance:
          anyOf:
          - type: number
            maximum: 1.0
            minimum: 0.0
          - type: 'null'
          title: Importance
      type: object
      title: MemoryUpdate
    MemoryStore:
      properties:
        content:
          type: string
          maxLength: 16384
          minLength: 1
          title: Content
        category:
          type: string
          maxLength: 50
          title: Category
          default: general
        tags:
          items:
            type: string
          type: array
          title: Tags
        importance:
          type: number
          maximum: 1.0
          minimum: 0.0
          title: Importance
          default: 0.5
        ttl_days:
          anyOf:
          - type: integer
            minimum: 1.0
          - type: 'null'
          title: Ttl Days
          description: Days until this memory expires. Omit for no expiry.
        source_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Source Type
          description: 'Origin of this memory: self | external | tool | human'
          default: self
      type: object
      required:
      - content
      title: MemoryStore
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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