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

# List the platforms a scan can target



## OpenAPI

````yaml get /api/migration/code-scanner/platforms
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/migration/code-scanner/platforms:
    get:
      tags:
        - Code Scanner
      summary: List the platforms a scan can target
      operationId: list_platforms_api_migration_code_scanner_platforms_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanPlatformsResponse'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    ScanPlatformsResponse:
      properties:
        default:
          type: string
          title: Default
        platforms:
          items:
            $ref: '#/components/schemas/ScanPlatform'
          type: array
          title: Platforms
      type: object
      required:
        - default
        - platforms
      title: ScanPlatformsResponse
      description: >-
        The platforms a new scan may target, and the one used when none is
        chosen.
    ScanPlatform:
      properties:
        id:
          type: string
          title: Id
        label:
          type: string
          title: Label
        spark:
          type: string
          title: Spark
        scala:
          type: string
          title: Scala
        java:
          type: string
          title: Java
        python:
          type: string
          title: Python
      type: object
      required:
        - id
        - label
        - spark
        - scala
        - java
        - python
      title: ScanPlatform
      description: The NX1 platform a scan checked against, with its dotted versions.
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.