> ## 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.

# List Policies

> Active policies enforced on this device: the project's own + the
account's global (project-less) policies, highest-priority first.



## OpenAPI

````yaml /api-reference/openapi-developer.json get /api/v1/policies
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/policies:
    get:
      tags:
        - policies
      summary: List Policies
      description: |-
        Active policies enforced on this device: the project's own + the
        account's global (project-less) policies, highest-priority first.
      operationId: list_policies_api_v1_policies_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentPoliciesResponse'
components:
  schemas:
    AgentPoliciesResponse:
      properties:
        policies:
          items:
            $ref: '#/components/schemas/developer__policies__router__AgentPolicy'
          type: array
          title: Policies
        total:
          type: integer
          title: Total
      type: object
      required:
        - policies
        - total
      title: AgentPoliciesResponse
    developer__policies__router__AgentPolicy:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        action:
          type: string
          title: Action
        threat_types:
          items:
            type: string
          type: array
          title: Threat Types
          default: []
        priority:
          type: integer
          title: Priority
          default: 100
      type: object
      required:
        - id
        - name
        - action
      title: AgentPolicy
      description: A single enforced rule, flattened for the agent UI.
  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.

````