Weavz · Schema

ApprovalPolicy

Artificial IntelligenceIntegrationPlatformSoftware-as-a-ServiceAutomationCompany

Properties

Name Type Description
id string
orgId string
workspaceId stringnull
name string
description stringnull
enabled boolean
priority integer
sources array
mcpServerIds array
workspaceIntegrationIds array
integrationAliases array
integrationNames array
actionNames array
connectionStrategies array
endUserMode string
decision string
riskMode string
rules object
approvers array Reviewer specification. Webhook approvers receive lifecycle events and a short-lived hosted approval URL.
timeoutSeconds integer
defaultOnTimeout string
reuseWindowSeconds integernull
approvalAccessMode string Controls whether reviewers can approve through Weavz review views, hosted bearer links, or both.
metadata objectnull
createdAt string
updatedAt string
View JSON Schema on GitHub

JSON Schema

weavz-io-approval-policy-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/weavz-io/json-schema/weavz-io-approval-policy-schema.json",
  "title": "ApprovalPolicy",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/weavz-io-openapi.json#/components/schemas/ApprovalPolicy",
  "type": "object",
  "required": [
    "id",
    "orgId",
    "name",
    "enabled",
    "priority",
    "sources",
    "decision",
    "riskMode",
    "timeoutSeconds",
    "defaultOnTimeout",
    "approvalAccessMode",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "orgId": {
      "type": "string"
    },
    "workspaceId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "enabled": {
      "type": "boolean"
    },
    "priority": {
      "type": "integer"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "rest",
          "sdk",
          "mcp_tools",
          "mcp_code",
          "playground",
          "trigger"
        ]
      }
    },
    "mcpServerIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workspaceIntegrationIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "integrationAliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "integrationNames": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "actionNames": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "connectionStrategies": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "fixed",
          "per_user",
          "per_user_with_fallback"
        ]
      }
    },
    "endUserMode": {
      "type": "string",
      "enum": [
        "any",
        "end_user_present",
        "no_end_user"
      ]
    },
    "decision": {
      "type": "string",
      "enum": [
        "require_approval",
        "notify_only",
        "block",
        "auto_approve"
      ]
    },
    "riskMode": {
      "type": "string",
      "enum": [
        "always",
        "rules",
        "model_assisted"
      ]
    },
    "rules": {
      "type": "object",
      "additionalProperties": true
    },
    "approvers": {
      "type": "array",
      "description": "Reviewer specification. Webhook approvers receive lifecycle events and a short-lived hosted approval URL.",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "org_role",
              "dashboard_user",
              "end_user",
              "webhook"
            ]
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "owner",
                "admin",
                "member"
              ]
            }
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "webhookUrl": {
            "type": "string",
            "format": "uri",
            "description": "Public HTTPS webhook URL for webhook approvers."
          }
        },
        "additionalProperties": true
      }
    },
    "timeoutSeconds": {
      "type": "integer"
    },
    "defaultOnTimeout": {
      "type": "string",
      "enum": [
        "reject",
        "expire"
      ]
    },
    "reuseWindowSeconds": {
      "type": [
        "integer",
        "null"
      ]
    },
    "approvalAccessMode": {
      "type": "string",
      "enum": [
        "dashboard_only",
        "dashboard_and_hosted_link",
        "hosted_link_only"
      ],
      "description": "Controls whether reviewers can approve through Weavz review views, hosted bearer links, or both."
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/weavz-io-approval-policy"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.