***
title: API Explorer
subtitle: >-
Reduce "time to 200" by allowing users to make real calls to your API from
right within the API Reference.
-------------------------------
Fern's API Explorer allows users to make authenticated requests to your API without ever leaving your documentation.
## Autopopulate with examples
Fern will automatically populate the fields of the endpoint with the values set in your API specification.
## Authentication
The API Explorer supports [all authentication schemes](/learn/api-definitions/openapi/authentication) configured in your OpenAPI spec or in `generators.yml`, including multiple authentication schemes. When multiple schemes are available, the API Explorer automatically displays them in a dropdown menu, allowing users to select and configure their preferred authentication method before sending requests.
Once a user sets their authentication credentials, their credentials persist throughout their entire exploration session.
Authentication credentials are only stored client-side using cookies. No sensitive user information is collected or stored.
To automatically populate API keys for logged-in users, see [API key injection](/learn/docs/authentication/features/api-key-injection).
## Multiple environments
When multiple server URLs are configured in [OpenAPI](/learn/api-definitions/openapi/extensions/server-names) or the [Fern Definition](/learn/api-definition/fern/api-yml/environments), users can switch between environments (e.g., production and sandbox) from a dropdown in the API Explorer. The selected environment persists as they navigate between pages.
Users can also double-click the server URL to manually edit it, allowing for quick testing against custom environments or endpoints.
Here's an example of the [Flagright docs site](https://docs.flagright.com/framl-api/api-reference/api-reference/transactions/get) with multiple server names configured.
```yaml
openapi: 3.0.0
servers:
- url: https://sandbox.api.flagright.com
x-fern-server-name: Sandbox API server (eu-1)
- url: https://sandbox-asia-1.api.flagright.com
x-fern-server-name: Sandbox API server (asia-1)
```
```yaml
environments:
Sandbox API server (eu-1): https://sandbox.api.flagright.com
Sandbox API server (asia-1): https://sandbox-asia-1.api.flagright.com
```
## WebSocket Playground
For APIs that support WebSocket connections, the API Explorer includes a **WebSocket**-specific Playground. The WebSocket Playground also allows users to establish a connection with the API, and send/receive messages in real-time.
## Control API Explorer availability
For OpenAPI specs, the API Explorer is enabled by default for all endpoints. You can disable it globally or per endpoint using the [`x-fern-explorer`](/learn/api-definitions/openapi/extensions/api-explorer-control) extension. This is commonly used to disable the Explorer for destructive operations, payment processing, or admin-only endpoints.