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

# List DNS Content Filtering Policies

> Retrieves a list of all DNS Content Filtering policies associated with your account.



## OpenAPI

````yaml /api/en/utm-ips.yaml get /content/policy
openapi: 3.0.3
info:
  title: Altostrat UTM & IPS API
  version: 1.0.0
  description: >-
    Manage DNS filtering, BGP threat mitigation, content categories, and site
    policy attachment through the public `/content` gateway path.
servers:
  - url: https://v1.api.altostrat.io
security:
  - bearerAuth: []
tags:
  - name: DNS Content Filtering
    description: Manage DNS-based content filtering policies and their components.
  - name: BGP Threat Intelligence
    description: Manage BGP-based IP reputation policies and threat feeds.
  - name: Site Security Configuration
    description: View and manage security policy attachments for specific sites.
paths:
  /content/policy:
    get:
      tags:
        - DNS Content Filtering
      summary: List DNS Content Filtering Policies
      description: >-
        Retrieves a list of all DNS Content Filtering policies associated with
        your account.
      operationId: listDnsPolicies
      responses:
        '200':
          description: A list of DNS policies.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DnsPolicy'
components:
  schemas:
    DnsPolicy:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The unique identifier for the DNS policy.
          readOnly: true
          example: 9a9a3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8a
        name:
          type: string
          description: A human-readable name for the policy.
          example: Standard Employee Policy
        applications:
          type: array
          description: A list of application IDs to be blocked by this policy.
          items:
            type: string
            format: uuid
          example:
            - 9a9b3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8b
            - 9a9c3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8c
        safe_search:
          type: array
          description: A list of Safe Search enforcement rules.
          items:
            $ref: '#/components/schemas/SafeSearchEnforcement'
        dns_whitelist:
          type: array
          description: >-
            A list of fully qualified domain names (FQDNs) to always allow,
            overriding any blocking rules.
          items:
            type: string
            format: hostname
          example:
            - internal.corp.com
            - status.altostrat.io
        dns_blacklist:
          type: array
          description: A list of fully qualified domain names (FQDNs) to always block.
          items:
            type: string
            format: hostname
          example:
            - malicious-site.net
        block_adult:
          type: boolean
          description: >-
            If true, automatically blocks all applications categorized as adult
            content.
          example: true
        attachments:
          type: integer
          description: The number of sites currently using this policy.
          readOnly: true
          example: 5
        created_at:
          type: string
          format: date-time
          description: The timestamp when the policy was created.
          readOnly: true
          example: '2025-10-29T13:04:44Z'
    SafeSearchEnforcement:
      type: object
      required:
        - id
        - option
      properties:
        id:
          type: string
          format: uuid
          description: The unique identifier of the Safe Search service (e.g., Google).
          example: 9a9f3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8f
        option:
          type: string
          description: The enforcement level or option for the service.
          example: strict
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````