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

# Get Task Policy Snapshot

> Read the effective governance policy persisted before workflow dispatch.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/governance/task-policy-snapshots/{task_id}
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/governance/task-policy-snapshots/{task_id}:
    get:
      tags:
        - v1
        - protected
        - governance
      summary: Get Task Policy Snapshot
      description: Read the effective governance policy persisted before workflow dispatch.
      operationId: >-
        get_task_policy_snapshot_v1_governance_task_policy_snapshots__task_id__get
      parameters:
        - in: path
          name: task_id
          required: true
          schema:
            format: uuid
            title: Task Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EffectivePolicyResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    EffectivePolicyResponse:
      properties:
        effective_policy:
          $ref: '#/components/schemas/EffectivePolicy'
      required:
        - effective_policy
      title: EffectivePolicyResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    EffectivePolicy:
      additionalProperties: false
      description: Resolved immutable policy snapshot.
      properties:
        approval:
          anyOf:
            - $ref: '#/components/schemas/ApprovalPolicy'
            - type: 'null'
        budget:
          anyOf:
            - $ref: '#/components/schemas/BudgetPolicy-Output'
            - type: 'null'
        content_safety:
          anyOf:
            - $ref: '#/components/schemas/ContentSafetyPolicy'
            - type: 'null'
        execution:
          anyOf:
            - $ref: '#/components/schemas/ExecutionLimitsPolicy'
            - type: 'null'
        resolver_version:
          default: policy-resolver-v1
          title: Resolver Version
          type: string
        source_policy_ids:
          items:
            type: string
          title: Source Policy Ids
          type: array
        tokens:
          anyOf:
            - $ref: '#/components/schemas/TokenPolicy'
            - type: 'null'
        tools:
          anyOf:
            - $ref: '#/components/schemas/ToolsPolicy'
            - type: 'null'
      title: EffectivePolicy
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    ApprovalPolicy:
      additionalProperties: false
      description: Human approval and escalation requirements.
      properties:
        approvers:
          items:
            type: string
          title: Approvers
          type: array
        approvers_by_tool:
          additionalProperties:
            items:
              type: string
            type: array
          title: Approvers By Tool
          type: object
        escalation_rules:
          items:
            type: string
          title: Escalation Rules
          type: array
        requires_human_approval:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Requires Human Approval
      title: ApprovalPolicy
      type: object
    BudgetPolicy-Output:
      additionalProperties: false
      description: Budget-related ceilings.
      properties:
        monthly_spend_cap_usd:
          anyOf:
            - ge: '0'
              type: string
            - type: 'null'
          title: Monthly Spend Cap Usd
        run_budget_usd:
          anyOf:
            - gt: '0'
              type: string
            - type: 'null'
          title: Run Budget Usd
        service_budget_usd:
          anyOf:
            - gt: '0'
              type: string
            - type: 'null'
          title: Service Budget Usd
      title: BudgetPolicy
      type: object
    ContentSafetyPolicy:
      additionalProperties: false
      description: Content-safety governance controls.
      properties:
        output_sanitizer_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Output Sanitizer Enabled
        prompt_injection_detection_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Prompt Injection Detection Enabled
      title: ContentSafetyPolicy
      type: object
    ExecutionLimitsPolicy:
      additionalProperties: false
      description: Ceilings for the agent loop and tool execution.
      properties:
        max_model_turns:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          title: Max Model Turns
        max_tool_calls_per_turn:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          title: Max Tool Calls Per Turn
        max_tool_calls_total:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          title: Max Tool Calls Total
      title: ExecutionLimitsPolicy
      type: object
    TokenPolicy:
      additionalProperties: false
      description: Token-related ceilings.
      properties:
        max_tokens:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          title: Max Tokens
        max_tokens_per_call:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          title: Max Tokens Per Call
      title: TokenPolicy
      type: object
    ToolsPolicy:
      additionalProperties: false
      description: MCP tool capability restrictions.
      properties:
        allowed:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Allowed
        denied:
          items:
            type: string
          title: Denied
          type: array
      title: ToolsPolicy
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````