Patricia Brain Overrides API
The brain-overrides API from Patricia — 6 operation(s) for brain-overrides.
The brain-overrides API from Patricia — 6 operation(s) for brain-overrides.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/patricia-app:patricia-app-brain-overrides-api"
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.
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: 3.2.0
info:
title: Patricia Brain Overrides API
version: 0.1.0
tags:
- name: brain-overrides
paths:
/v1/brain-docs/{doc_id}/pin:
post:
tags:
- brain-overrides
summary: Pin a brain doc
description: Protect a doc from Curator archival and consolidation.
operationId: pin_brain_doc_v1_brain_docs__doc_id__pin_post
security:
- HTTPBearer: []
parameters:
- name: doc_id
in: path
required: true
schema:
type: string
format: uuid
title: Doc 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/models__brain__BrainDoc__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'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/brain-docs/{doc_id}/restore:
post:
tags:
- brain-overrides
summary: Restore a brain doc
description: Un-archive (and un-soft-delete) a doc, returning it to the active set.
operationId: restore_brain_doc_v1_brain_docs__doc_id__restore_post
security:
- HTTPBearer: []
parameters:
- name: doc_id
in: path
required: true
schema:
type: string
format: uuid
title: Doc 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/models__brain__BrainDoc__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'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/brain-docs/{doc_id}/unpin:
post:
tags:
- brain-overrides
summary: Unpin a brain doc
operationId: unpin_brain_doc_v1_brain_docs__doc_id__unpin_post
security:
- HTTPBearer: []
parameters:
- name: doc_id
in: path
required: true
schema:
type: string
format: uuid
title: Doc 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/models__brain__BrainDoc__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'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/memory-items/{item_id}/pin:
post:
tags:
- brain-overrides
summary: Pin a memory item
description: Make a memory a standing rule. Every run in its scope carries up to 25 pinned memories, protected rules first and then newest unprotected pins, whatever the run asks. Protected rules count against this limit. A workspace pin that would displace a current rule is refused. Replace a current rule or unpin one first. A pin protects the memory from Curator decay, prune, and consolidation. A personal memory stands only in a run that answers its owner in the owner's own chat-platform direct message. A person keeps at most 10 personal standing rules and replaces or unpins one before adding another. A meeting memory keeps that protection but reaches a run only through ordinary recall.
operationId: pin_memory_item_v1_memory_items__item_id__pin_post
security:
- HTTPBearer: []
parameters:
- name: item_id
in: path
required: true
schema:
type: string
format: uuid
title: Item Id
- name: protected
in: query
required: false
schema:
anyOf:
- type: boolean
- type: 'null'
title: Protected
- 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/PinnedMemoryResponse'
'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'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/memory-items/{item_id}/restore:
post:
tags:
- brain-overrides
summary: Restore a memory item
description: Clear pruning and soft deletion. Expiry and reuse holds remain in force. Answers 409 while stop-reuse coverage covers the memory.
operationId: restore_memory_item_v1_memory_items__item_id__restore_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:
anyOf:
- $ref: '#/components/schemas/HeldMemoryRestoreResponse'
- $ref: '#/components/schemas/models__brain__MemoryItem__FullValidator'
title: Response Restore Memory Item V1 Memory Items Item Id Restore Post
'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-items/{item_id}/unpin:
post:
tags:
- brain-overrides
summary: Unpin a memory item
operationId: unpin_memory_item_v1_memory_items__item_id__unpin_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/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:
DocStatus:
type: string
enum:
- active
- archived
title: DocStatus
HeldMemoryRestoreResponse:
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
reuse_held:
type: boolean
const: true
title: Reuse Held
default: true
message:
type: string
const: Restored. This memory is still on hold and is not used for replies.
title: Message
default: Restored. This memory is still on hold and is not used for replies.
type: object
required:
- id
- tenant_id
- scope_code
- kind_code
- content
- salience
- hit_count
- pinned
- source
- created_at
- updated_at
title: HeldMemoryRestoreResponse
models__brain__BrainDoc__FullValidator:
properties:
id:
type: string
format: uuid
title: Id
tenant_id:
type: string
format: uuid
title: Tenant Id
path:
type: string
title: Path
title:
type: string
title: Title
summary:
type: string
title: Summary
body:
type: string
title: Body
scope_code:
$ref: '#/components/schemas/BrainDocScope'
status_code:
$ref: '#/components/schemas/DocStatus'
pinned:
type: boolean
title: Pinned
version:
type: integer
title: Version
token_count:
type: integer
title: Token Count
hit_count:
type: integer
title: Hit Count
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
updated_by_run:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Updated By Run
group_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Group Id
space_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Space Id
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
- path
- title
- summary
- body
- scope_code
- status_code
- pinned
- version
- token_count
- hit_count
- created_at
- updated_at
title: FullValidator
description: Response shape for GET / POST / PUT / PATCH.
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.
PinnedMemoryResponse:
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
displaced_rule:
anyOf:
- additionalProperties:
type: string
type: object
- type: 'null'
title: Displaced Rule
reaches_runs:
anyOf:
- type: boolean
- type: 'null'
title: Reaches Runs
window_message:
anyOf:
- type: string
- type: 'null'
title: Window Message
type: object
required:
- id
- tenant_id
- scope_code
- kind_code
- content
- salience
- hit_count
- pinned
- source
- created_at
- updated_at
title: PinnedMemoryResponse
MemoryScope:
type: string
enum:
- tenant
- group
- conversation
- actor
title: MemoryScope
BrainDocScope:
type: string
enum:
- company
- space
- group
- team
- domain
- agent
title: BrainDocScope
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