Patricia Auto Approve API

The auto-approve API from Patricia — 3 operation(s) for auto-approve.

GitHub OpenAPI

Operations 4

GET /v1/actor-preferences/auto-approve Get an actor's auto-approve settings #
DELETE /v1/actor-preferences/auto-approve/tools/{tool_ref} Revoke a durable auto-approve grant for one tool #
GET /v1/auto-approve/tenant Get the tenant auto-approve controls #
PUT /v1/auto-approve/tenant Set the tenant auto-approve controls #

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-auto-approve-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-auto-approve-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Patricia Auto Approve API
  version: 0.1.0
tags:
- name: auto-approve
paths:
  /v1/actor-preferences/auto-approve:
    get:
      tags:
      - auto-approve
      summary: Get an actor's auto-approve settings
      description: Read an actor's durable auto-approve grants + the tenant master state (your own, or anyone's if you are an admin).
      operationId: get_auto_approve_v1_actor_preferences_auto_approve_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/AutoApproveActorResponse'
        '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/actor-preferences/auto-approve/tools/{tool_ref}:
    delete:
      tags:
      - auto-approve
      summary: Revoke a durable auto-approve grant for one tool
      description: Remove the actor's 'auto-approve this tool going forward' grant (your own, or anyone's if you are an admin).
      operationId: revoke_auto_approve_tool_v1_actor_preferences_auto_approve_tools__tool_ref__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: tool_ref
        in: path
        required: true
        schema:
          type: string
          description: The canonical tool ref of the durable grant to revoke.
          title: Tool Ref
        description: The canonical tool ref of the durable grant to revoke.
      - 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/AutoApproveActorResponse'
        '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/auto-approve/tenant:
    get:
      tags:
      - auto-approve
      summary: Get the tenant auto-approve controls
      description: Read the workspace master switch, kill-switch epoch, and allowlist (admin).
      operationId: get_tenant_auto_approve_v1_auto_approve_tenant_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/TenantAutoApproveResponse'
        '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:
      - auto-approve
      summary: Set the tenant auto-approve controls
      description: Set the workspace master switch and allowlist. An explicit bump, a master disable, or an unreadable stored block moves the epoch at most once per request. When the stored epoch is readable, a bump invalidates every durable and in-flight grant. An unreadable epoch cannot be recovered, so its repair still bumps from the fail-closed epoch. Admin only.
      operationId: set_tenant_auto_approve_v1_auto_approve_tenant_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/TenantAutoApproveBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantAutoApproveResponse'
        '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'
components:
  schemas:
    TenantAutoApproveResponse:
      properties:
        enabled:
          type: boolean
          title: Enabled
        epoch:
          type: integer
          title: Epoch
        allowlist:
          items:
            type: string
          type: array
          title: Allowlist
        floor_tiers:
          items:
            $ref: '#/components/schemas/RiskTier'
          type: array
          title: Floor Tiers
      type: object
      required:
      - enabled
      - epoch
      - allowlist
      - floor_tiers
      title: TenantAutoApproveResponse
      description: The tenant's effective auto-approve controls (admin view).
    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.
    TenantAutoApproveBody:
      properties:
        enabled:
          type: boolean
          title: Enabled
          description: Allow eligible standing grants in this workspace. Disabling invalidates existing grants.
        allowlist:
          items:
            type: string
          type: array
          title: Allowlist
          description: The canonical tool references eligible for standing grants, subject to every runtime approval guard.
        bump_epoch:
          type: boolean
          title: Bump Epoch
          default: false
      additionalProperties: false
      type: object
      required:
      - enabled
      title: TenantAutoApproveBody
      description: Admin request body to set the tenant master switch + allowlist. ``bump_epoch`` is the kill switch.
    AutoApproveActorResponse:
      properties:
        actor_id:
          type: string
          format: uuid
          title: Actor Id
        tenant_enabled:
          type: boolean
          title: Tenant Enabled
        durable_tool_refs:
          items:
            type: string
          type: array
          title: Durable Tool Refs
        floor_tiers:
          items:
            $ref: '#/components/schemas/RiskTier'
          type: array
          title: Floor Tiers
        eligible_tiers:
          items:
            $ref: '#/components/schemas/RiskTier'
          type: array
          title: Eligible Tiers
      type: object
      required:
      - actor_id
      - tenant_enabled
      - durable_tool_refs
      - floor_tiers
      - eligible_tiers
      title: AutoApproveActorResponse
      description: 'An actor''s auto-approve view for the settings UI: the tenant switch + their durable grants.'
    RiskTier:
      type: string
      enum:
      - read_only
      - low
      - medium
      - high
      - critical
      title: RiskTier
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer