> ## Documentation Index
> Fetch the complete documentation index at: https://docs.promptguard.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Managed Policy

> The org-managed update policy for this enrolled device (resolved from the
API key's org + its ``shadow_ai_fleet`` entitlement). The desktop agent polls
this and lets it override the local user preference (managed wins).



## OpenAPI

````yaml /api-reference/openapi-developer.json get /api/v1/proxy/agent/managed-policy
openapi: 3.1.0
info:
  title: PromptGuard Developer API
  description: >-
    Public API for developers to integrate PromptGuard security into their
    applications
  version: 1.0.0
servers:
  - url: https://api.promptguard.dev
    description: Production API
  - url: https://staging-api.promptguard.dev
    description: Staging API
  - url: http://localhost:8080
    description: Local Development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/proxy/agent/managed-policy:
    get:
      tags:
        - agent
      summary: Managed Policy
      description: >-
        The org-managed update policy for this enrolled device (resolved from
        the

        API key's org + its ``shadow_ai_fleet`` entitlement). The desktop agent
        polls

        this and lets it override the local user preference (managed wins).
      operationId: managed_policy_api_v1_proxy_agent_managed_policy_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedPolicyResponse'
components:
  schemas:
    ManagedPolicyResponse:
      properties:
        fleet:
          type: boolean
          title: Fleet
          default: false
        force_update_mode:
          anyOf:
            - type: string
            - type: 'null'
          title: Force Update Mode
        pinned_channel:
          anyOf:
            - type: string
            - type: 'null'
          title: Pinned Channel
        min_version_override:
          anyOf:
            - type: string
            - type: 'null'
          title: Min Version Override
      type: object
      title: ManagedPolicyResponse
      description: >-
        The managed update policy an enrolled Shadow AI device should apply.

        ``fleet`` reflects the org's ``shadow_ai_fleet`` entitlement; when false
        the

        other fields are null and the device keeps its local user preference.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        PromptGuard API key for developer endpoints. Keys start with pg_live_
        and are created in the dashboard.

````