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

# List Blocking Rules

> Retrieve all blocking rules for the authenticated user's company



## OpenAPI

````yaml /api-reference/openapi.json get /blocking-rules
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API for interacting with Corgea's scanning and vulnerability management
    features
servers:
  - url: https://www.corgea.app/api/v1
    description: Production server
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /blocking-rules:
    get:
      tags:
        - Policies
      summary: List Blocking Rules
      description: Retrieve all blocking rules for the authenticated user's company
      operationId: listBlockingRules
      responses:
        '200':
          description: Blocking rules retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  blocking_rules:
                    type: array
                    items:
                      $ref: '#/components/schemas/BlockingRule'
        '401':
          description: Invalid or missing token
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Missing or invalid authorization header
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: An error occurred while fetching blocking rules
components:
  schemas:
    BlockingRule:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        description:
          type: string
        urgencies:
          type: array
          items:
            type: string
            enum:
              - critical
              - high
              - medium
              - low
        classifications:
          type: array
          items:
            type: string
        projects:
          type: array
          items:
            type: string
        project_tags:
          type: array
          items:
            type: string
          description: Project tags that scope this blocking rule
        active:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API key for authentication
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2 access token (JWT) in the Authorization header

````