Patricia Admin Proactive Programs API

The admin-proactive-programs API from Patricia — 2 operation(s) for admin-proactive-programs.

GitHub OpenAPI

Operations 2

GET /v1/admin/tenants/{tenant_id}/proactive-programs List a tenant's proactive programs #
PATCH /v1/admin/tenants/{tenant_id}/proactive-programs/{program_id}/mode Change a proactive program's mode #

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-admin-proactive-programs-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-admin-proactive-programs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Patricia Admin Proactive Programs API
  version: 0.1.0
tags:
- name: admin-proactive-programs
paths:
  /v1/admin/tenants/{tenant_id}/proactive-programs:
    get:
      tags:
      - admin-proactive-programs
      summary: List a tenant's proactive programs
      description: Every live Workflow Discovery row for one workspace, with the mode that decides whether it may speak, the fire cursor that decides whether it runs at all, and any auto-pause label. An empty `scope` denies channel posts but allows DMs, so it is returned alongside.
      operationId: list_proactive_programs_v1_admin_tenants__tenant_id__proactive_programs_get
      security:
      - HTTPBearer: []
      parameters:
      - name: tenant_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Tenant Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminProactiveProgramListResponse'
        '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/admin/tenants/{tenant_id}/proactive-programs/{program_id}/mode:
    patch:
      tags:
      - admin-proactive-programs
      summary: Change a proactive program's mode
      description: 'Set how much one program may do: `observe` (runs, never sends), `dm_only` (DMs and reactions), `full` (also channel posts), or `disabled` (does not run). Widening past `observe` permits unprompted messages, so the change is recorded durably against the acting admin. The fire cursor is reconciled in the same transaction: a program that becomes runnable gets one, a program that stops being runnable gives up its cursor and lease.'
      operationId: set_proactive_program_mode_v1_admin_tenants__tenant_id__proactive_programs__program_id__mode_patch
      security:
      - HTTPBearer: []
      parameters:
      - name: tenant_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Tenant Id
      - name: program_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Program Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetProactiveProgramModeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminProactiveProgramResponse'
        '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'
components:
  schemas:
    AdminProactiveProgramResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        tenant_id:
          type: string
          format: uuid
          title: Tenant Id
        program_type_code:
          type: string
          title: Program Type Code
        mode_code:
          type: string
          title: Mode Code
        enabled:
          type: boolean
          title: Enabled
        schedule:
          type: string
          title: Schedule
        next_run_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Next Run At
        last_run_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Run At
        paused_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Paused Reason
        paused_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Paused At
        consecutive_failures:
          type: integer
          title: Consecutive Failures
        scope:
          additionalProperties: true
          type: object
          title: Scope
      type: object
      required:
      - id
      - tenant_id
      - program_type_code
      - mode_code
      - enabled
      - schedule
      - next_run_at
      - last_run_at
      - paused_reason
      - paused_at
      - consecutive_failures
      - scope
      title: AdminProactiveProgramResponse
      description: One tenant program row as staff see it, including why it is dormant.
    SetProactiveProgramModeRequest:
      properties:
        mode_code:
          $ref: '#/components/schemas/ProactiveProgramMode'
        enabled:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Enabled
      additionalProperties: false
      type: object
      required:
      - mode_code
      title: SetProactiveProgramModeRequest
      description: Change one program's mode. ``enabled`` defaults to "runnable unless disabled".
    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.
    ProactiveProgramMode:
      type: string
      enum:
      - observe
      - dm_only
      - full
      - disabled
      title: ProactiveProgramMode
      description: 'How much a proactive program may do (the staged rollout — §5.1, §7).


        ``observe`` → the program runs (reads + reasons) but the delivery gate blocks EVERY outbound

        (it only records what it WOULD do); ``dm_only`` → DMs + reactions; ``full`` → also channel

        posts; ``disabled`` → the program does not run at all. The default program seeds ``dm_only``; a mode

        change is staff-only.'
    AdminProactiveProgramListResponse:
      properties:
        programs:
          items:
            $ref: '#/components/schemas/AdminProactiveProgramResponse'
          type: array
          title: Programs
      type: object
      required:
      - programs
      title: AdminProactiveProgramListResponse
      description: Every live program row for one tenant.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer