Patricia Memory Viewer API

The memory-viewer API from Patricia — 6 operation(s) for memory-viewer.

GitHub OpenAPI

Operations 6

GET /v1/memory/beliefs List what Patricia believes for this tenant #
PATCH /v1/memory/company-facts Edit a company fact #
POST /v1/memory/lessons/{lesson_id}/forget Forget a lesson #
GET /v1/memory/map The projected picture of what Patricia remembers #
GET /v1/memory/map/search Which drawn memories a search matched #
POST /v1/memory/memories/{item_id}/forget Forget a memory #

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/patricia-app:patricia-app-memory-viewer-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

patricia-app-memory-viewer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Patricia Memory Viewer API
  version: 0.1.0
tags:
- name: memory-viewer
paths:
  /v1/memory/beliefs:
    get:
      tags:
      - memory-viewer
      summary: List what Patricia believes for this tenant
      description: Unified, source-labeled list of recallable memories, promoted lessons, and company facts.
      operationId: list_beliefs_v1_memory_beliefs_get
      security:
      - HTTPBearer: []
      parameters:
      - name: place
        in: query
        required: true
        schema:
          $ref: '#/components/schemas/MemoryViewerPlace'
          description: 'Which place to list: workspace (company memory, lessons, company facts) or you (the caller''s own memories).'
        description: 'Which place to list: workspace (company memory, lessons, company facts) or you (the caller''s own memories).'
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          description: Case-insensitive substring filter.
          title: Search
        description: Case-insensitive substring filter.
      - name: kind
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: 'Filter to one of: memory | lesson | fact.'
          title: Kind
        description: 'Filter to one of: memory | lesson | fact.'
      - name: group
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter to one provenance family.
          title: Group
        description: Filter to one provenance family.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 100
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BeliefList'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/memory/company-facts:
    patch:
      tags:
      - memory-viewer
      summary: Edit a company fact
      description: Update one whitelisted company/brand-profile field.
      operationId: edit_company_fact_v1_memory_company_facts_patch
      security:
      - HTTPBearer: []
      parameters:
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyFactUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BeliefItem'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/memory/lessons/{lesson_id}/forget:
    post:
      tags:
      - memory-viewer
      summary: Forget a lesson
      description: Retire a promoted lesson AND soft-delete its recallable memory row, so it leaves recall.
      operationId: forget_lesson_v1_memory_lessons__lesson_id__forget_post
      security:
      - HTTPBearer: []
      parameters:
      - name: lesson_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Lesson Id
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForgetResult'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/memory/map:
    get:
      tags:
      - memory-viewer
      summary: The projected picture of what Patricia remembers
      description: 'Every memory this person may read, placed in three dimensions by a nightly projection of its embedding. A picture of the memory space, never the basis of an answer: search, neighbours and every count read the real vectors.'
      operationId: read_memory_map_v1_memory_map_get
      security:
      - HTTPBearer: []
      parameters:
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryMap'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/memory/map/search:
    get:
      tags:
      - memory-viewer
      summary: Which drawn memories a search matched
      description: 'The ids of the points to light up for a search, matched against the whole memory rather than the preview a point carries. Returns ids only: the caller already holds the map.'
      operationId: search_memory_map_v1_memory_map_search_get
      security:
      - HTTPBearer: []
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 200
          description: Case-insensitive substring of a memory.
          title: Q
        description: Case-insensitive substring of a memory.
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryMapMatches'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/memory/memories/{item_id}/forget:
    post:
      tags:
      - memory-viewer
      summary: Forget a memory
      description: Soft-delete a recallable memory so it leaves recall. A restore answers 409 while stop-reuse coverage covers the memory.
      operationId: forget_memory_v1_memory_memories__item_id__forget_post
      security:
      - HTTPBearer: []
      parameters:
      - name: item_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Item Id
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForgetResult'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    BeliefItem:
      properties:
        id:
          type: string
          title: Id
          description: 'Opaque id: a memory/lesson UUID, or ''company:<field>'' for a company fact.'
        kind:
          type: string
          title: Kind
          description: One of 'memory' | 'lesson' | 'fact'.
        kind_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Kind Code
          description: Raw memory kind, or null for a company fact.
        kind_label:
          type: string
          title: Kind Label
          description: Friendly memory-kind label. Never a raw code.
        source:
          type: string
          title: Source
          description: Provenance code (e.g. lesson_promoted, review, company_profile).
        source_label:
          type: string
          title: Source Label
          description: Friendly provenance label, e.g. 'learned lesson'.
        group:
          type: string
          title: Group
          description: Provenance family code.
        group_label:
          type: string
          title: Group Label
          description: Friendly provenance-family label. Never a raw code.
        origin_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin Title
          description: Human name of the place the memory came from, when known.
        content:
          type: string
          title: Content
        created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
          description: When Patricia learned the item, or null when the source has no creation time.
        updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated At
          description: The last write to the row. The Curator's 6-hourly decay sweep restamps this value. It is never a learn time and must never be labelled 'learned'.
        editable:
          type: boolean
          title: Editable
          default: false
        forgettable:
          type: boolean
          title: Forgettable
          default: false
      type: object
      required:
      - id
      - kind
      - kind_code
      - kind_label
      - source
      - source_label
      - group
      - group_label
      - origin_title
      - content
      - created_at
      title: BeliefItem
      description: One thing Patricia believes for this tenant, ready to render as a card.
    ForgetResult:
      properties:
        id:
          type: string
          title: Id
        forgotten:
          type: boolean
          title: Forgotten
          default: true
        retired_from_recall:
          type: boolean
          title: Retired From Recall
          default: false
        suppression_request_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Suppression Request Id
        suppression_status:
          anyOf:
          - $ref: '#/components/schemas/SuppressionRequestStatus'
          - type: 'null'
      type: object
      required:
      - id
      title: ForgetResult
      description: Outcome of a FORGET action (soft-delete a memory, or retire a lesson from recall).
    BeliefGroup:
      properties:
        code:
          type: string
          title: Code
        label:
          type: string
          title: Label
        count:
          type: integer
          title: Count
      type: object
      required:
      - code
      - label
      - count
      title: BeliefGroup
      description: One non-empty provenance family in the search-filtered corpus.
    ErrorResponse:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        errors:
          anyOf:
          - items:
              additionalProperties: true
              type: object
            type: array
          - type: 'null'
          title: Errors
      type: object
      required:
      - code
      - message
      title: ErrorResponse
      description: Standard error envelope, matching exception handler output.
    MemoryMapPoint:
      properties:
        id:
          type: string
          title: Id
          description: The memory's UUID. Stable across every recompute.
        x:
          type: number
          title: X
        y:
          type: number
          title: Y
        z:
          type: number
          title: Z
        group:
          type: string
          title: Group
          description: Provenance family code, matching BeliefItem.group.
        group_label:
          type: string
          title: Group Label
          description: Friendly provenance-family label. Never a raw code.
        preview:
          type: string
          title: Preview
          description: The first 140 characters of the memory.
      type: object
      required:
      - id
      - x
      - y
      - z
      - group
      - group_label
      - preview
      title: MemoryMapPoint
      description: 'One memory''s place in the picture.


        ``id`` is the memory''s own id, which is what makes a deep link to a point survive every

        recompute: the projection is rebuilt nightly, but a point is identified by the memory it draws,

        never by a cluster index or a position.


        The coordinates carry no unit and no meaning of their own. Distance between two points is a

        hint about similarity and never evidence of it, and the axes are not quantities: search,

        neighbours and every count read the real vectors instead.'
    SuppressionRequestStatus:
      properties:
        state:
          type: string
          enum:
          - pending_apply
          - settling
          - rescanning
          - covered
          - closed_item_only
          - failed
          - superseded
          title: State
        coverage_scope:
          anyOf:
          - type: string
            enum:
            - requested
            - item_only
          - type: 'null'
          title: Coverage Scope
        source_identity_status:
          type: string
          enum:
          - known
          - unknown
          - unresolved
          title: Source Identity Status
          default: unresolved
        exact_item_excluded:
          type: boolean
          title: Exact Item Excluded
          default: false
        generation:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Generation
        reason_code:
          anyOf:
          - type: string
            maxLength: 40
            pattern: ^[a-z][a-z0-9_]*$
          - type: 'null'
          title: Reason Code
        not_checked:
          additionalProperties:
            additionalProperties:
              type: integer
            propertyNames:
              enum:
              - window_only
              - missing
              - unsupported
            type: object
          propertyNames:
            enum:
            - memory_items
            - lessons
            - brain_docs
          type: object
          title: Not Checked
        request_id:
          type: string
          format: uuid
          title: Request Id
        phase:
          type: string
          title: Phase
        affected_work:
          additionalProperties:
            type: integer
          type: object
          title: Affected Work
        residuals:
          additionalProperties:
            type: integer
          type: object
          title: Residuals
        superseded:
          type: boolean
          title: Superseded
          default: false
        wait_reason:
          anyOf:
          - type: string
            const: shadow_read_overdue
          - type: 'null'
          title: Wait Reason
          description: Set by the request status read and by a repeated request while an unfinished request has waited 15 minutes or more for a memory lookup to finish.
        message:
          type: string
          title: Message
          readOnly: true
      additionalProperties: false
      type: object
      required:
      - state
      - request_id
      - phase
      - message
      title: SuppressionRequestStatus
    MemoryMapMatches:
      properties:
        query:
          type: string
          title: Query
          description: The search this answers, trimmed exactly as it was applied.
        ids:
          items:
            type: string
          type: array
          title: Ids
          description: Matching memory UUIDs, at most 5000 of them.
        total:
          type: integer
          title: Total
          description: Every match the caller may see, even when more than `ids` carries.
        truncated:
          type: boolean
          title: Truncated
          description: True when `total` is larger than the returned `ids`.
      type: object
      required:
      - query
      - ids
      - total
      - truncated
      title: MemoryMapMatches
      description: 'Which drawn memories a search matched, as ids the open map already holds.


        The map is not re-sent and no memory text comes back: the client has both, and this answers the

        one question it cannot answer alone, because a point carries a preview while the search reads

        the whole memory.'
    BeliefList:
      properties:
        items:
          items:
            $ref: '#/components/schemas/BeliefItem'
          type: array
          title: Items
        total:
          type: integer
          title: Total
          description: True count of items matching the request filters.
        groups:
          items:
            $ref: '#/components/schemas/BeliefGroup'
          type: array
          title: Groups
          description: Non-empty family counts over the search-filtered corpus, ignoring kind and group filters.
        new_since_yesterday:
          type: integer
          title: New Since Yesterday
          description: Search-filtered items learned during the last 24 hours, excluding company facts.
      type: object
      required:
      - items
      - total
      - groups
      - new_since_yesterday
      title: BeliefList
      description: A page of beliefs plus stable corpus counts.
    CompanyFactUpdate:
      properties:
        key:
          type: string
          title: Key
        value:
          type: string
          maxLength: 2000
          title: Value
      type: object
      required:
      - key
      - value
      title: CompanyFactUpdate
      description: Edit one company-profile fact. ``key`` is a whitelisted brand-profile field.
    MemoryMap:
      properties:
        points:
          items:
            $ref: '#/components/schemas/MemoryMapPoint'
          type: array
          title: Points
        total:
          type: integer
          title: Total
          description: Points in this response. Never a count over rows the caller cannot read.
        ready:
          type: boolean
          title: Ready
          description: True when this workspace has a map built by the current recipe. False when no map was built yet or the stored map used a different recipe.
        built_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Built At
          description: When the served map was built, or null when `ready` is false.
      type: object
      required:
      - points
      - total
      - ready
      - built_at
      title: MemoryMap
      description: 'Every point of this tenant''s projection that the calling person may see.


        Never a sample. A map that silently drew some of the corpus would misrepresent the rest of it,

        so this returns the caller''s whole visible point set or an empty one.'
    MemoryViewerPlace:
      type: string
      enum:
      - workspace
      - you
      title: MemoryViewerPlace
      description: 'The place the dashboard memory viewer lists: the whole workspace, or only the caller''s own rows.'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer