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

# Get compliance history for a project

> Returns a paginated list of past policy evaluations for the project.



## OpenAPI

````yaml get /projects/{projectId}/compliance-history
openapi: 3.0.0
info:
  title: Cybedefend API
  description: >-
    CybeDefend is an advanced API for application security analysis. Key
    features include OAuth 2.0 authentication, user/organization/project
    management, and REBAC-based permissions. It excels in static, dynamic, and
    IaC security analyses (SAST, DAST, IaC, etc.).
  version: '1.0'
  contact: {}
servers:
  - url: https://api-eu.cybedefend.com
    description: EU
  - url: https://api-us.cybedefend.com
    description: US
security: []
tags: []
paths:
  /projects/{projectId}/compliance-history:
    get:
      tags:
        - Policy
      summary: Get compliance history for a project
      description: Returns a paginated list of past policy evaluations for the project.
      operationId: PolicyController_getComplianceHistory
      parameters:
        - name: projectId
          required: true
          in: path
          schema:
            format: uuid
            type: string
        - name: page
          required: false
          in: query
          schema:
            type: number
        - name: pageSize
          required: false
          in: query
          schema:
            type: number
        - name: startDate
          required: false
          in: query
          description: ISO date string
          schema:
            type: string
        - name: endDate
          required: false
          in: query
          description: ISO date string
          schema:
            type: string
      responses:
        '200':
          description: Compliance history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComplianceHistoryResponseDto'
      security:
        - bearer: []
components:
  schemas:
    ComplianceHistoryResponseDto:
      type: object
      properties:
        entries:
          description: Compliance history entries
          type: array
          items:
            $ref: '#/components/schemas/ComplianceHistoryEntryDto'
        total:
          type: number
          description: Total number of entries
          example: 25
        page:
          type: number
          description: Current page
          example: 1
        pageSize:
          type: number
          description: Page size
          example: 10
      required:
        - entries
        - total
        - page
        - pageSize
    ComplianceHistoryEntryDto:
      type: object
      properties:
        evaluationId:
          type: string
          description: Evaluation ID (may not be available for all entries)
          example: 550e8400-e29b-41d4-a716-446655440000
        scanId:
          type: string
          description: Scan ID
          example: 550e8400-e29b-41d4-a716-446655440001
        compliant:
          type: boolean
          description: Whether the scan was compliant
          example: true
        blockingViolationsCount:
          type: number
          description: Number of blocking violations
          example: 0
        warningViolationsCount:
          type: number
          description: Number of warning violations
          example: 3
        evaluatedAt:
          type: string
          description: When the evaluation was completed
          example: '2024-01-15T10:31:00Z'
        breakingRulesCount:
          type: number
          description: Number of unique rules broken
          example: 2
      required:
        - scanId
        - compliant
        - blockingViolationsCount
        - warningViolationsCount
        - evaluatedAt
        - breakingRulesCount
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT access token.

````