Patricia Actor Preferences API
The actor-preferences API from Patricia — 4 operation(s) for actor-preferences.
The actor-preferences API from Patricia — 4 operation(s) for actor-preferences.
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-actor-preferences-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 Actor Preferences API
version: 0.1.0
tags:
- name: actor-preferences
paths:
/v1/actor-preferences:
get:
tags:
- actor-preferences
summary: List employee preferences
description: List preferences for an actor (your own, or anyone's if you are an admin).
operationId: list_actor_preferences_v1_actor_preferences_get
security:
- HTTPBearer: []
parameters:
- name: actor_id
in: query
required: false
schema:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Actor 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:
type: array
items:
$ref: '#/components/schemas/models__preference__ActorPreference__FullValidator'
title: Response List Actor Preferences V1 Actor Preferences Get
'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'
post:
tags:
- actor-preferences
summary: Set an employee preference
description: Upsert one preference key for an actor (overwrites if the key exists).
operationId: set_actor_preference_v1_actor_preferences_post
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/models__preference__ActorPreference__CreateValidator'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/models__preference__ActorPreference__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'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/actor-preferences/approval-policy:
get:
tags:
- actor-preferences
summary: Get the tool-approval policy
description: Read an actor's tool-approval policy (your own, or anyone's if you are an admin).
operationId: get_approval_policy_v1_actor_preferences_approval_policy_get
security:
- HTTPBearer: []
parameters:
- name: actor_id
in: query
required: false
schema:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Actor 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/ApprovalPolicyResponse'
'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'
put:
tags:
- actor-preferences
summary: Set the tool-approval policy
description: Set an actor's tool-approval policy. Only the requester may change their Critical choice.
operationId: set_approval_policy_v1_actor_preferences_approval_policy_put
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/ApprovalPolicyBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApprovalPolicyResponse'
'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'
/v1/actor-preferences/timezone:
get:
tags:
- actor-preferences
summary: Get the stored timezone
description: Read the caller's own stored timezone.
operationId: get_actor_timezone_v1_actor_preferences_timezone_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/ActorTimezoneResponse'
'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'
put:
tags:
- actor-preferences
summary: Set the stored timezone
description: user_provided (default) unconditionally overwrites any prior value; browser_detected writes only while the caller's timezone is still unset.
operationId: set_actor_timezone_v1_actor_preferences_timezone_put
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/ActorTimezoneBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ActorTimezoneResponse'
'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'
/v1/actor-preferences/{preference_id}:
get:
tags:
- actor-preferences
summary: Get an employee preference
operationId: get_actor_preference_v1_actor_preferences__preference_id__get
security:
- HTTPBearer: []
parameters:
- name: preference_id
in: path
required: true
schema:
type: string
format: uuid
title: Preference 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__preference__ActorPreference__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'
patch:
tags:
- actor-preferences
summary: Update an employee preference
operationId: update_actor_preference_v1_actor_preferences__preference_id__patch
security:
- HTTPBearer: []
parameters:
- name: preference_id
in: path
required: true
schema:
type: string
format: uuid
title: Preference Id
- 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/models__preference__ActorPreference__MergeValidator'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/models__preference__ActorPreference__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'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
delete:
tags:
- actor-preferences
summary: Remove an employee preference
operationId: delete_actor_preference_v1_actor_preferences__preference_id__delete
security:
- HTTPBearer: []
parameters:
- name: preference_id
in: path
required: true
schema:
type: string
format: uuid
title: Preference Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'204':
description: Successful Response
'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:
models__preference__ActorPreference__CreateValidator:
properties:
actor_id:
type: string
format: uuid
title: Actor Id
key:
type: string
title: Key
value:
type: string
title: Value
source_code:
$ref: '#/components/schemas/PreferenceSource'
default: explicit
additionalProperties: false
type: object
required:
- actor_id
- key
- value
title: CreateValidator
description: 'Upsert body: ``POST /actor-preferences`` sets (or overwrites) one key.'
ActorTimezoneResponse:
properties:
actor_id:
type: string
format: uuid
title: Actor Id
timezone:
anyOf:
- type: string
- type: 'null'
title: Timezone
timezone_source:
anyOf:
- $ref: '#/components/schemas/ActorTimezoneSource'
- type: 'null'
type: object
required:
- actor_id
- timezone
- timezone_source
title: ActorTimezoneResponse
description: An actor's stored timezone and where it came from.
models__preference__ActorPreference__FullValidator:
properties:
id:
type: string
format: uuid
title: Id
tenant_id:
type: string
format: uuid
title: Tenant Id
actor_id:
type: string
format: uuid
title: Actor Id
key:
type: string
title: Key
value:
type: string
title: Value
source_code:
$ref: '#/components/schemas/PreferenceSource'
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
- actor_id
- key
- value
- source_code
- created_at
- updated_at
title: FullValidator
ActorTimezoneSource:
type: string
enum:
- slack_profile
- google_calendar
- user_provided
- browser_detected
- chat_client
title: ActorTimezoneSource
description: 'Where an actor''s stored IANA ``timezone`` came from. ``SLACK_PROFILE``/``GOOGLE_CALENDAR``/
``BROWSER_DETECTED``/``CHAT_CLIENT`` are write-once (``services.actor_timezone.write_actor_timezone_if_unset``
never displaces one resolver''s write with another''s); ``USER_PROVIDED`` is the one exception,
since a person''s own save (``repositories.actor.ActorRepository.set_timezone_user_provided``)
always overwrites.'
ApprovalPolicyResponse:
properties:
actor_id:
type: string
format: uuid
title: Actor Id
mode:
$ref: '#/components/schemas/ApprovalPolicyMode'
tiers:
items:
$ref: '#/components/schemas/RiskTier'
type: array
title: Tiers
floor_tiers:
items:
$ref: '#/components/schemas/RiskTier'
type: array
title: Floor Tiers
description: The default tier approval floor. An explicit Critical Always allow choice can waive it.
read_tier:
$ref: '#/components/schemas/TierDecision'
description: Your own read-tier choice when you set one — it decides this tier and mode/tiers cannot override it. A synthesized default otherwise, decided by mode/tiers instead.
write_tier:
$ref: '#/components/schemas/TierDecision'
description: Your own write-tier choice when you set one — it decides this tier and mode/tiers cannot override it. A synthesized default otherwise, decided by mode/tiers instead.
critical_tier:
$ref: '#/components/schemas/TierDecision'
description: Your own critical-tier choice. Defaults to Always ask. Always allow can skip the confirm card for Critical actions from built-in tools and from Composio actions with a valid output contract. Actions from MCP connections and other apps still ask first. Under this setting alone, actions whose names look credential-shaped, actions that request credential reveal, and actions with missing or unreadable evidence keep their cards.
explicit_tier_groups:
items:
type: string
enum:
- read
- write
- critical
type: array
title: Explicit Tier Groups
description: 'Which of read/write/critical above are YOUR OWN choice rather than a value synthesized from mode/tiers. Trust read_tier/write_tier/critical_tier as the actor''s real, unambiguous decision only for a group listed here — for one that is not, mode/tiers can still disagree with part of the group even though this field reports one value for it. Transitional for PAT-1755''s mode/tiers retirement: expect every actor to list all three groups, and this field to become a no-op, once that series removes mode/tiers.'
type: object
required:
- actor_id
- mode
- tiers
- floor_tiers
- read_tier
- write_tier
- critical_tier
- explicit_tier_groups
title: ApprovalPolicyResponse
description: An actor's effective approval policy and its general-policy tier floor.
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.
ActorTimezoneBody:
properties:
timezone:
type: string
maxLength: 64
title: Timezone
source:
type: string
enum:
- user_provided
- browser_detected
title: Source
default: user_provided
additionalProperties: false
type: object
required:
- timezone
title: ActorTimezoneBody
description: 'Request body for ``PUT /actor-preferences/timezone`` — always the caller''s own actor.
``source`` defaults to ``user_provided``; only that and ``browser_detected`` are accepted.'
ApprovalPolicyMode:
type: string
enum:
- default
- always
- never
- tiers
title: ApprovalPolicyMode
description: 'How a user''s per-actor approval preference shapes the tool-approval gate.
Pure runtime concept, NOT a code-table. It never appears as a ``*_code``
column; it is the ``mode`` field inside the JSON value of the
``approval_policy`` :class:`~models.preference.ActorPreference`, so it is
validated by Pydantic (``models.approval_policy``) rather than seeded into a
reference table. Explicit Read, Write and Critical choices outrank mode.
An unset Critical choice keeps its tier card.
Always allow can skip the confirm card for Critical actions from built-in tools and from Composio actions
with a valid output contract. Actions from MCP connections and other apps still ask first. Under this
setting alone, actions whose names look credential-shaped, actions that request credential reveal, and
actions with missing or unreadable evidence keep their cards.
Target-bound approval rules remain. Requester-bound cards remain unless you chose
Always allow on that action''s approval card.'
ApprovalPolicyBody:
properties:
mode:
$ref: '#/components/schemas/ApprovalPolicyMode'
description: 'When Patricia asks you to approve a tool call. Authorized mail labels, drafts, read status and archiving run without confirmation regardless of saved choices. Outlook moves to Archive or the Inbox run without confirmation. Other folders, Trash and Spam follow your approval settings. Critical actions keep their approval floor under general mode choices. A separate per-tool consent can waive one action. Provider-required actions keep their approval floor. Actions whose name matches the audience rule, and actions requiring a card decision, keep theirs on any action Patricia already asks about. Choosing Always allow on an approval card clears the provider-required, card-required and audience floors for that kind of call. Patricia''s own tools, such as asking you a question, updating her progress checklist, or finding a tool, always run without asking whatever you choose here. Her internal bookkeeping, such as making a folder or scheduling one of Patricia''s tasks, also runs without asking; only your saved choice for read actions turns one of those back into an approval, unless you chose Always allow on that action''s card. Patricia''s own small steps run without asking, whatever you choose here: saving or updating a library file, getting a link to a file that is not public, saving a dashboard preview, adding a reaction, copying a library file into her sandbox and reading a public web page. Reading a web page still asks under Ask me every time or when Read is set to Always ask. Publishing a file still asks, and other approval rules still apply. In your own scheduled tasks, an approval you choose on the task''s note clears the provider-required and audience floors for that step.'
tiers:
items:
$ref: '#/components/schemas/RiskTier'
type: array
uniqueItems: true
title: Tiers
description: The risk tiers that ask for approval when mode is tiers.
read_tier:
anyOf:
- $ref: '#/components/schemas/TierDecision'
- type: 'null'
description: 'Your own choice for read actions. Sticky: once set it outranks mode/tiers for reads even across a later mode change, until you send null here to clear it back to following mode/tiers.'
write_tier:
anyOf:
- $ref: '#/components/schemas/TierDecision'
- type: 'null'
description: 'Your own choice for write actions. Sticky: once set it outranks mode/tiers for writes even across a later mode change, until you send null here to clear it back to following mode/tiers.'
critical_tier:
anyOf:
- $ref: '#/components/schemas/TierDecision'
- type: 'null'
description: Your own choice for critical actions. Defaults to Always ask. Always allow can skip the confirm card for Critical actions from built-in tools and from Composio actions with a valid output contract. Actions from MCP connections and other apps still ask first. Under this setting alone, actions whose names look credential-shaped, actions that request credential reveal, and actions with missing or unreadable evidence keep their cards.
actor_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Actor Id
additionalProperties: false
type: object
required:
- mode
title: ApprovalPolicyBody
description: 'Request body for setting an actor''s approval policy (``PUT``).
Inherits the shared ``mode``/``tiers`` fields + validation (a malformed body is a
4xx here, unlike the fail-closed read path) and adds the routing-only ``actor_id``.
``mode`` is required (no default) so a caller states intent explicitly. ``actor_id``
is optional and admin-only: when omitted the route targets the CALLER''s own actor,
so the dashboard never needs to know its own actor id.'
RiskTier:
type: string
enum:
- read_only
- low
- medium
- high
- critical
title: RiskTier
TierDecision:
type: string
enum:
- always_allow
- always_ask
title: TierDecision
description: 'A member''s explicit Allow/Ask choice for Read, Write or Critical actions.
Critical defaults to Ask.
Always allow can skip the confirm card for Critical actions from built-in tools and from Composio actions
with a valid output contract. Actions from MCP connections and other apps still ask first. Under this
setting alone, actions whose names look credential-shaped, actions that request credential reveal, and
actions with missing or unreadable evidence keep their cards.
A member may change only their own Critical choice.'
PreferenceSource:
type: string
enum:
- explicit
- inferred
title: PreferenceSource
description: 'How an employee preference was captured.
``EXPLICIT`` preferences are authoritative and Curator-exempt; ``INFERRED``
ones mirror what the reflection loop learned and may decay.'
models__preference__ActorPreference__MergeValidator:
properties:
value:
anyOf:
- type: string
- type: 'null'
title: Value
source_code:
anyOf:
- $ref: '#/components/schemas/PreferenceSource'
- type: 'null'
updated_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Updated At
additionalProperties: false
type: object
title: MergeValidator
description: 'PATCH body: edit an existing preference by id.'
securitySchemes:
HTTPBearer:
type: http
scheme: bearer