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

# Get Org Issues

> Get all issues for the organization with pagination and filtering.

Args:
    page: Page number (1-based)
    per_page: Items per page (1-100)
    severity: Comma-separated severity levels to filter by
    category: Comma-separated categories to filter by
    false_positive: Filter by false positive status (0=no, 1=yes, 2=review)
    repo_id: Filter by repository ID
    scan_id: Filter by scan ID
    file_path: Filter by file path (partial match)
    created_after: Filter issues created after this date
    created_before: Filter issues created before this date
    user: Authenticated user from Clerk
    
Returns:
    Paginated list of issues with metadata
    
Raises:
    401: Unauthorized (invalid token)
    403: Forbidden (no organization found)
    400: Bad request (invalid parameters)
    500: Internal server error



## OpenAPI

````yaml api-reference/openapi.json get /api/issues
openapi: 3.1.0
info:
  title: Enforster AI API
  description: Enforster AI API for code analysis and security scanning.
  version: 1.8.0
servers: []
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /api/issues:
    get:
      summary: Get Org Issues
      description: |-
        Get all issues for the organization with pagination and filtering.

        Args:
            page: Page number (1-based)
            per_page: Items per page (1-100)
            severity: Comma-separated severity levels to filter by
            category: Comma-separated categories to filter by
            false_positive: Filter by false positive status (0=no, 1=yes, 2=review)
            repo_id: Filter by repository ID
            scan_id: Filter by scan ID
            file_path: Filter by file path (partial match)
            created_after: Filter issues created after this date
            created_before: Filter issues created before this date
            user: Authenticated user from Clerk
            
        Returns:
            Paginated list of issues with metadata
            
        Raises:
            401: Unauthorized (invalid token)
            403: Forbidden (no organization found)
            400: Bad request (invalid parameters)
            500: Internal server error
      operationId: get_org_issues_api_issues_get
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number (1-based)
            default: 1
            title: Page
          description: Page number (1-based)
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Items per page (1-100)
            default: 20
            title: Per Page
          description: Items per page (1-100)
        - name: severity
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Comma-separated severity levels to filter by
            title: Severity
          description: Comma-separated severity levels to filter by
        - name: category
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Comma-separated categories to filter by
            title: Category
          description: Comma-separated categories to filter by
        - name: false_positive
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            description: Filter by false positive status (True/False)
            title: False Positive
          description: Filter by false positive status (True/False)
        - name: repo_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by repository ID
            title: Repo Id
          description: Filter by repository ID
        - name: scan_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by scan ID
            title: Scan Id
          description: Filter by scan ID
        - name: file_path
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by file path (partial match)
            title: File Path
          description: Filter by file path (partial match)
        - name: created_after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter issues created after this date (ISO format)
            title: Created After
          description: Filter issues created after this date (ISO format)
        - name: created_before
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter issues created before this date (ISO format)
            title: Created Before
          description: Filter issues created before this date (ISO format)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedIssuesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    PaginatedIssuesResponse:
      properties:
        issues:
          items:
            $ref: '#/components/schemas/IssueResponse'
          type: array
          title: Issues
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        per_page:
          type: integer
          title: Per Page
        total_pages:
          type: integer
          title: Total Pages
        has_next:
          type: boolean
          title: Has Next
        has_prev:
          type: boolean
          title: Has Prev
      type: object
      required:
        - issues
        - total
        - page
        - per_page
        - total_pages
        - has_next
        - has_prev
      title: PaginatedIssuesResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    IssueResponse:
      properties:
        id:
          type: string
          title: Id
        scan_id:
          type: string
          title: Scan Id
        file_path:
          type: string
          title: File Path
        line_number:
          type: integer
          title: Line Number
        column_start:
          anyOf:
            - type: integer
            - type: 'null'
          title: Column Start
        column_end:
          anyOf:
            - type: integer
            - type: 'null'
          title: Column End
        category:
          type: string
          title: Category
        severity:
          type: string
          title: Severity
        confidence:
          type: number
          title: Confidence
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        explanation:
          anyOf:
            - type: string
            - type: 'null'
          title: Explanation
        code_snippet:
          anyOf:
            - type: string
            - type: 'null'
          title: Code Snippet
        context_before:
          anyOf:
            - type: string
            - type: 'null'
          title: Context Before
        context_after:
          anyOf:
            - type: string
            - type: 'null'
          title: Context After
        remediation:
          anyOf:
            - type: string
            - type: 'null'
          title: Remediation
        remediation_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Remediation Code
        cwe_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cwe Ids
        owasp_category:
          anyOf:
            - type: string
            - type: 'null'
          title: Owasp Category
        cvss_score:
          anyOf:
            - type: number
            - type: 'null'
          title: Cvss Score
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        model_used:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Used
        false_positive:
          type: boolean
          title: False Positive
          default: false
        exploitable:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Exploitable
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        repo_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Repo Name
        scan_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Scan Status
        scan_created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Scan Created At
      type: object
      required:
        - id
        - scan_id
        - file_path
        - line_number
        - category
        - severity
        - confidence
        - title
        - description
      title: IssueResponse
    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
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Use an API key in the X-API-Key header.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk JWT bearer token.

````