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

# Get Listening Ports

> List ports currently listening inside a workspace.



## OpenAPI

````yaml GET /api/v1/workspaces/{id}/listening-ports
openapi: 3.1.0
info:
  title: Rigbox Public API
  description: >-
    Gateway-owned public API for Rigbox. The gateway composes its local
    lifecycle API with service-owned exported specs.
  contact:
    name: Rigbox
    url: https://rigbox.dev
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.rigbox.dev
    description: Production gateway
security: []
tags:
  - name: Workspaces
  - name: CLI
  - name: Observability
  - name: Auth
  - name: API Keys
  - name: Access Control
  - name: Apps
  - name: App Catalog
  - name: Logs
  - name: AI
  - name: Tools
  - name: Snapshots
  - name: SSH Keys
  - name: Templates
  - name: Setup Scripts
  - name: Service Specs
  - name: Deploy
  - name: Community
  - name: User Settings
  - name: Roadmap
  - name: System
paths:
  /api/v1/workspaces/{id}/listening-ports:
    get:
      tags:
        - Apps
      summary: List ports with active listeners in a workspace.
      description: >-
        List ports with active listeners in the workspace, flagging
        already-exposed ones.
      operationId: get_listening_ports
      parameters:
        - name: id
          in: path
          description: Workspace ID
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Listening ports
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListListeningPortsResponse'
      security:
        - bearer: []
components:
  schemas:
    ListListeningPortsResponse:
      type: object
      required:
        - ports
      properties:
        ports:
          type: array
          items:
            $ref: '#/components/schemas/ListeningPort'
    ListeningPort:
      type: object
      description: A port detected as listening in a workspace.
      required:
        - port
        - address
        - already_exposed
      properties:
        address:
          type: string
        already_exposed:
          type: boolean
        port:
          type: integer
          format: int32
          minimum: 0
        process:
          type:
            - string
            - 'null'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````