> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

# API Explorer control

> Enable or disable the API Explorer for WebSocket channels using `x-fern-explorer`

The [API Explorer](/learn/docs/api-references/api-explorer) is enabled by default for every WebSocket channel. Set `x-fern-explorer: false` at the document root to hide the Playground for all channels, and override it on individual channels; a channel's own value takes precedence. Non-boolean values are reported as errors when importing the specification.

#### AsyncAPI 3.0

**`asyncapi.yml`**

```yaml title="asyncapi.yml" {5,9}
asyncapi: 3.0.0
info:
  title: Plant Store API
  version: 1.0.0
x-fern-explorer: false  # Disable the Explorer for all channels
channels:
  plantMonitor:
    address: /plants/monitor
    x-fern-explorer: true  # Enable the Explorer for this channel
    messages:
      moistureReading:
        $ref: "#/components/messages/MoistureReading"
  plantUpdates:
    address: /plants/updates  # Remains disabled (document-level value applies)
    messages:
      statusUpdate:
        $ref: "#/components/messages/StatusUpdate"
```

#### AsyncAPI 2.x

**`asyncapi.yml`**

```yaml title="asyncapi.yml" {5,8}
asyncapi: 2.6.0
info:
  title: Plant Store API
  version: 1.0.0
x-fern-explorer: false  # Disable the Explorer for all channels
channels:
  /plants/monitor:
    x-fern-explorer: true  # Enable the Explorer for this channel
    subscribe:
      operationId: monitorPlants
      message:
        $ref: "#/components/messages/MoistureReading"
  /plants/updates:  # Remains disabled (document-level value applies)
    subscribe:
      operationId: plantUpdates
      message:
        $ref: "#/components/messages/StatusUpdate"
```