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

# Listar los hallazgos de análisis de código de Enterprise

> Listar los hallazgos de análisis de código de Enterprise

<div id="permissions">
  ## Permisos
</div>

Requiere un usuario de servicio con el permiso `ViewAccountCodeScans` en el nivel de Enterprise.


## OpenAPI

````yaml es/v3-openapi.yaml GET /v3/enterprise/code-scans/findings
openapi: 3.1.0
info:
  description: API de Devin v3 con autenticación mediante usuario de servicio y RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/code-scans/findings:
    get:
      tags:
        - code-scans
      summary: Listar hallazgos del análisis de código
      description: >-
        Lista los hallazgos de análisis de código de la cuenta Enterprise.


        Los hallazgos se devuelven del más reciente al más antiguo. De forma
        opcional, filtra por ``org_ids``,

        ``scan_id``, ``repo_name``, ``severity`` y ``status`` (``severity`` y

        ``status`` aceptan múltiples valores); los resultados se paginan con un

        cursor opaco (``after`` / ``first``).
      operationId: handle_list_code_scan_findings_v3_enterprise_code_scans_findings_get
      parameters:
        - in: query
          name: after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: After
        - in: query
          name: first
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: First
            type: integer
        - description: Filtra los hallazgos de estas organizaciones.
          in: query
          name: org_ids
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            description: Filtra los hallazgos de estas organizaciones.
            title: Org Ids
        - description: Filtra los hallazgos generados por este análisis.
          in: query
          name: scan_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filtra los hallazgos generados por este análisis.
            title: Scan Id
        - description: Filtra los hallazgos reportados en este repositorio.
          in: query
          name: repo_name
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filtra los hallazgos reportados en este repositorio.
            title: Repo Name
        - description: >-
            Filtra los hallazgos con cualquiera de estos niveles de gravedad
            (critical, high, medium, low).
          in: query
          name: severity
          required: false
          schema:
            anyOf:
              - items:
                  enum:
                    - critical
                    - high
                    - medium
                    - low
                  type: string
                type: array
              - type: 'null'
            description: >-
              Filtra los hallazgos con cualquiera de estos niveles de gravedad
              (critical, high, medium, low).
            title: Severity
        - description: >-
            Filtra los hallazgos con cualquiera de estos estados (open,
            dismissed, resolved).
          in: query
          name: status
          required: false
          schema:
            anyOf:
              - items:
                  enum:
                    - open
                    - dismissed
                    - resolved
                  type: string
                type: array
              - type: 'null'
            description: >-
              Filtra los hallazgos con cualquiera de estos estados (open,
              dismissed, resolved).
            title: Status
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResponse_CodeScanFindingResponse_
          description: Respuesta exitosa
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Error de validación
components:
  schemas:
    PaginatedResponse_CodeScanFindingResponse_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Cursor para obtener la página siguiente, o None si esta es la última
            página.
          title: End Cursor
        has_next_page:
          default: false
          description: Indica si hay más elementos disponibles después de esta página.
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/CodeScanFindingResponse'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: Recuento total opcional (puede omitirse por motivos de rendimiento).
          title: Total
      required:
        - items
      title: PaginatedResponse[CodeScanFindingResponse]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    CodeScanFindingResponse:
      description: Un hallazgo de análisis de código.
      properties:
        category:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Categoría (nombre de la regla) en la que se clasificó el hallazgo,
            si corresponde.
          title: Category
        code_owners:
          description: Responsables del código asociados al código afectado.
          items:
            type: string
          title: Code Owners
          type: array
        created_at:
          description: Momento en que se creó el hallazgo (segundos Unix).
          title: Created At
          type: integer
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Descripción detallada de la vulnerabilidad, si corresponde.
          title: Description
        finding_id:
          description: Identificador único del hallazgo.
          title: Finding Id
          type: string
        note:
          anyOf:
            - type: string
            - type: 'null'
          description: Nota adicional adjunta al hallazgo, si corresponde.
          title: Note
        orchestrator_session_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Sesión del orquestador que ejecutó el análisis que produjo el
            hallazgo (la sesión de Devin del análisis), si corresponde.
          title: Orchestrator Session Id
        pr_url:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            URL de la PR de remediación abierta para este hallazgo, si
            corresponde.
          title: Pr Url
        recommendation:
          anyOf:
            - type: string
            - type: 'null'
          description: Remediación sugerida para el hallazgo, si corresponde.
          title: Recommendation
        reference_snippets:
          description: >-
            Fragmentos de código a los que hace referencia el hallazgo como
            evidencia de respaldo.
          items:
            $ref: '#/components/schemas/CodeScanReferenceSnippetResponse'
          title: Reference Snippets
          type: array
        repo_name:
          description: Repositorio en el que se informó el hallazgo.
          title: Repo Name
          type: string
        scan_id:
          description: Identificador del análisis que produjo el hallazgo.
          title: Scan Id
          type: string
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          description: Sesión que remedió el hallazgo (y abrió la PR), si corresponde.
          title: Session Id
        severity:
          description: 'Gravedad del hallazgo: critical, high, medium o low.'
          enum:
            - critical
            - high
            - medium
            - low
          title: Severity
          type: string
        status:
          description: 'Estado del hallazgo: open, dismissed o resolved.'
          enum:
            - open
            - dismissed
            - resolved
          title: Status
          type: string
        title:
          anyOf:
            - type: string
            - type: 'null'
          description: Título del hallazgo, si corresponde.
          title: Title
      required:
        - finding_id
        - title
        - description
        - recommendation
        - note
        - code_owners
        - reference_snippets
        - severity
        - category
        - repo_name
        - pr_url
        - scan_id
        - session_id
        - orchestrator_session_id
        - status
        - created_at
      title: CodeScanFindingResponse
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    CodeScanReferenceSnippetResponse:
      description: Fragmento de código citado por un hallazgo como evidencia de respaldo.
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
          description: El código fuente citado, si se capturó.
          title: Code
        commentary:
          description: Explicación de por qué este fragmento es relevante para el hallazgo.
          title: Commentary
          type: string
        end_line:
          description: Última línea del rango citado.
          title: End Line
          type: integer
        file_path:
          description: Ruta del archivo citado.
          title: File Path
          type: string
        start_line:
          description: Primera línea del rango citado.
          title: Start Line
          type: integer
      required:
        - file_path
        - start_line
        - end_line
        - commentary
      title: CodeScanReferenceSnippetResponse
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Credencial de usuario de servicio (prefijo: cog_)'
      scheme: bearer
      type: http

````