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

# Generate Workspace Compliance Report

> Workspace-level compliance report.

Combines runtime DLP evidence (PII/injection blocks) with the semantic
finding->regulation control mapping and the tamper-evident audit-chain
status. Returns the structured summary as JSON (or streams CSV); PDF
rendering remains dataset-scoped and falls back to JSON.



## OpenAPI

````yaml /api-reference/openapi.json post /api/compliance/report
openapi: 3.1.0
info:
  title: Blindsight API
  version: 0.1.0
  description: >-
    The full Blindsight REST surface, generated from the running application.
    Replace the server host with your own deployment.


    For the Runtime Security integration surface (scan, proxy, tool calls) see
    the Runtime Security spec, which is hand written and carries worked
    examples.
servers:
  - url: https://api.your-blindsight.com
    description: Your Blindsight deployment
security: []
paths:
  /api/compliance/report:
    post:
      tags:
        - compliance
      summary: Generate Workspace Compliance Report
      description: |-
        Workspace-level compliance report.

        Combines runtime DLP evidence (PII/injection blocks) with the semantic
        finding->regulation control mapping and the tamper-evident audit-chain
        status. Returns the structured summary as JSON (or streams CSV); PDF
        rendering remains dataset-scoped and falls back to JSON.
      operationId: generate_workspace_compliance_report_api_compliance_report_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ComplianceReportRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ComplianceReportRequest:
      properties:
        format:
          $ref: '#/components/schemas/ComplianceReportFormat'
        depth:
          $ref: '#/components/schemas/ComplianceReportDepth'
        compliance_standard:
          $ref: '#/components/schemas/ComplianceStandard'
        time_range:
          anyOf:
            - $ref: '#/components/schemas/ComplianceTimeRange'
            - type: 'null'
      additionalProperties: false
      type: object
      required:
        - format
        - depth
        - compliance_standard
      title: ComplianceReportRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ComplianceReportFormat:
      type: string
      enum:
        - json
        - pdf
        - csv
      title: ComplianceReportFormat
    ComplianceReportDepth:
      type: string
      enum:
        - summary
        - detailed
        - exhaustive
      title: ComplianceReportDepth
    ComplianceStandard:
      type: string
      enum:
        - soc2
        - iso27001
        - hipaa
        - gdpr
        - fadp
        - eu_ai_act
      title: ComplianceStandard
    ComplianceTimeRange:
      properties:
        start:
          type: string
          format: date-time
          title: Start
        end:
          type: string
          format: date-time
          title: End
      type: object
      required:
        - start
        - end
      title: ComplianceTimeRange
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````