Patricia Memory Items API

The memory-items API from Patricia — 2 operation(s) for memory-items.

GitHub OpenAPI

Operations 2

GET /v1/memory-items Search memory items #
GET /v1/memory-items/{id} Get memory item #

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-items-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-items-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Patricia Memory Items API
  version: 0.1.0
tags:
- name: memory-items
paths:
  /v1/memory-items:
    get:
      tags:
      - memory-items
      summary: Search memory items
      description: List memory items with filtering, sorting, and pagination.
      operationId: list_items_v1_memory_items_get
      security:
      - HTTPBearer: []
      parameters:
      - name: q
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: ANTLR filter expression
          title: Q
        description: ANTLR filter expression
      - name: limit
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 500
            minimum: 1
          - type: 'null'
          description: Page size
          title: Limit
        description: Page size
      - name: sort_by
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Sort expression (e.g. created_at:desc)
          title: Sort By
        description: Sort expression (e.g. created_at:desc)
      - name: fields
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Field projection (e.g. id,name)
          title: Fields
        description: Field projection (e.g. id,name)
      - name: pq
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Pagination cursor query
          title: Pq
        description: Pagination cursor query
      - name: from_prev
        in: query
        required: false
        schema:
          type: boolean
          description: Backward pagination flag
          default: false
          title: From Prev
        description: Backward pagination flag
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Paginated memory item list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__brain__MemoryItem__SearchValidator'
        '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'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/memory-items/{id}:
    get:
      tags:
      - memory-items
      summary: Get memory item
      description: Retrieve a single memory item by ID.
      operationId: get_item_v1_memory_items__id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Id
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: The requested memory item.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__brain__MemoryItem__FullValidator'
        '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'
components:
  schemas:
    MemoryKind:
      type: string
      enum:
      - fact
      - preference
      - entity
      - event
      - lesson
      - summary
      title: MemoryKind
    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.
    models__brain__MemoryItem__SearchValidator:
      properties:
        items:
          items:
            $ref: '#/components/schemas/models__brain__MemoryItem__FullValidator'
          type: array
          title: Items
        first:
          anyOf:
          - type: string
          - type: 'null'
          title: First
        next:
          anyOf:
          - type: string
          - type: 'null'
          title: Next
        previous:
          anyOf:
          - type: string
          - type: 'null'
          title: Previous
      type: object
      required:
      - items
      title: SearchValidator
      description: Typed cursor-paginated list response.
    MemoryScope:
      type: string
      enum:
      - tenant
      - group
      - conversation
      - actor
      title: MemoryScope
    models__brain__MemoryItem__FullValidator:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        tenant_id:
          type: string
          format: uuid
          title: Tenant Id
        scope_code:
          $ref: '#/components/schemas/MemoryScope'
        scope_ref:
          anyOf:
          - type: string
          - type: 'null'
          title: Scope Ref
        kind_code:
          $ref: '#/components/schemas/MemoryKind'
        content:
          type: string
          title: Content
        salience:
          type: number
          title: Salience
        hit_count:
          type: integer
          title: Hit Count
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
        pruned_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Pruned At
        pinned:
          type: boolean
          title: Pinned
        protected:
          type: boolean
          title: Protected
          default: false
        source:
          type: string
          title: Source
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - tenant_id
      - scope_code
      - kind_code
      - content
      - salience
      - hit_count
      - pinned
      - source
      - created_at
      - updated_at
      title: FullValidator
      description: Response shape for memory reads and pin, unpin and restore. The raw vector is never exposed.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer