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

# Read the agent policy

> Per-action auto / approve / deny for agent-initiated changes. Anyone may read it (agents consult it before acting). `enabled` is false when USE_AGENT_POLICY is off, in which case every action is auto.



## OpenAPI

````yaml /openapi.yaml get /api/v1/policy
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.28.0
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/policy:
    get:
      tags:
        - Agent Policy
      summary: Read the agent policy
      description: >-
        Per-action auto / approve / deny for agent-initiated changes. Anyone may
        read it (agents consult it before acting). `enabled` is false when
        USE_AGENT_POLICY is off, in which case every action is auto.
      responses:
        '200':
          description: The policy, the recommended template and the action vocabulary
          content:
            application/json:
              schema:
                type: object
                properties:
                  enabled:
                    type: boolean
                  policy:
                    $ref: '#/components/schemas/AgentPolicy'
                  recommended:
                    $ref: '#/components/schemas/AgentPolicy'
                  actions:
                    type: array
                    description: Every action key a policy may name (sorted)
                    items:
                      type: string
                  pendingCount:
                    type: integer
components:
  schemas:
    AgentPolicy:
      type: object
      properties:
        version:
          type: integer
          readOnly: true
        actions:
          type: object
          description: >-
            action key (resource:action[:sub] or resource:*) → auto | approve |
            deny; unset is auto
          additionalProperties:
            type: string
            enum:
              - auto
              - approve
              - deny
        overrides:
          type: object
          description: >-
            pipeline:<name> or tap:<name> → action map that may only tighten the
            default
          additionalProperties:
            type: object
            additionalProperties:
              type: string
              enum:
                - auto
                - approve
                - deny
        limits:
          type: object
          properties:
            pendingTtlHours:
              type: integer
              default: 24
            maxPendingPerActor:
              type: integer
              default: 50
        updatedAt:
          type: string
          readOnly: true
        updatedBy:
          type: string
          readOnly: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````