AI Discovery Policy

Get Enforcement Policy

Returns the AI Discovery enforcement policy for your organization.

The policy defines the default action applied to discovered MCP servers and skills when no rule matches, along with an ordered list of rules that are evaluated top-to-bottom (first match wins).

get/api/discovery/policy

Request

  • Base URL: https://app.withwillow.ai
  • URL: https://app.withwillow.ai/api/discovery/policy
  • Auth: HTTP bearer

Response

Enforcement policy retrieved successfully

Example response

{
  "data": {
    "mcp_servers": "allow",
    "skills": "allow",
    "capability_names": {
      "9f2c1a7e5b3d4c8e6a1f0b2d3e4f5a6b": "filesystem"
    },
    "rules": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "Block unknown filesystem MCP",
        "match_field": "hash",
        "target": "mcp_server",
        "action": "block",
        "enabled": true,
        "status": "active",
        "scope_type": "group",
        "agents": [
          "cursor"
        ],
        "created_at": "2024-06-01T12:00:00Z",
        "created_by": "admin@example.com"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.