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

# List policy evaluation audit rows (what enforcement happened, newest-first)



## OpenAPI

````yaml /api-reference/openapi.json get /v1/policies/evaluations
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/policies/evaluations:
    get:
      tags:
        - policies
      summary: >-
        List policy evaluation audit rows (what enforcement happened,
        newest-first)
      operationId: listPolicyEvaluations
      parameters:
        - name: conversation_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Conversation Id
        - name: policy_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Policy Id
        - name: result
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/PolicyEvaluationResult'
              - type: 'null'
            title: Result
        - name: enforcement_point
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/PolicyEnforcementPoint'
              - type: 'null'
            title: Enforcement Point
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CursorPage_PolicyEvaluationResponse_'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PolicyEvaluationResult:
      type: string
      enum:
        - pass
        - fail
        - error
        - skipped
      title: PolicyEvaluationResult
      description: Outcome of one evaluation of a policy check.
    PolicyEnforcementPoint:
      type: string
      enum:
        - input
        - pre_tool
        - post_tool
        - agent_response
      title: PolicyEnforcementPoint
      description: >-
        Where in a turn a policy's check fires (v2: one point per policy).


        ``agent_response`` is the single author-facing reply point — the v1

        ``response`` (per-streamed-unit) + ``post_response`` (complete reply)
        split is

        an internal runtime detail now, selected by the platform-derived
        enforcement

        strategy (buffer-and-gate vs per-unit), not an authored distinction.
    CursorPage_PolicyEvaluationResponse_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/PolicyEvaluationResponse'
          type: array
          title: Items
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
        - items
        - has_more
      title: CursorPage[PolicyEvaluationResponse]
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PolicyEvaluationResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        policy_id:
          type: string
          format: uuid
          title: Policy Id
        policy_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Policy Name
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        conversation_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Conversation Id
        agent_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Id
        enforcement_point:
          type: string
          title: Enforcement Point
        mode:
          anyOf:
            - type: string
            - type: 'null'
          title: Mode
        transport_class:
          anyOf:
            - type: string
            - type: 'null'
          title: Transport Class
        channel:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel
        result:
          type: string
          title: Result
        action_taken:
          anyOf:
            - type: string
            - type: 'null'
          title: Action Taken
        would_be_action:
          anyOf:
            - type: string
            - type: 'null'
          title: Would Be Action
        violation_detail:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Violation Detail
        latency_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Latency Ms
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - policy_id
        - organization_id
        - enforcement_point
        - result
        - created_at
      title: PolicyEvaluationResponse
      description: >-
        One ``PolicyEvaluation`` audit row — what enforcement happened on a
        turn.


        The Postgres-backed counterpart to the Tinybird policy analytics (which
        is

        deploy-gated and empty locally): the engine writes one of these per
        policy

        check per enforcement point per turn, so the UI can show enforcement

        inline/post-hoc without a Tinybird deploy. ``policy_name`` is joined
        from the

        parent ``Policy`` for display (the audit row itself only carries
        ``policy_id``).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````