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

## Multiple authentication schemes in the API Explorer

api-reference

The API Explorer now supports multiple authentication schemes and combinations of authentication schemes for OpenAPI specs.

First, configure your OpenAPI spec with multiple security options:

**`openapi.yml`**

```yaml openapi.yml {8-11}
/plant/search/status:
  get:
    tags:
      - plant
    summary: Search plants by status
    description: Filter plants based on their current status.
    operationId: searchPlantsByStatus
    security:
      - bearerAuth: []  # Option 1: Bearer token only (OR)
      - basicAuth: []   # Option 2: Basic auth AND API key (combined)
        apiKey: []
```

Then, the API Explorer automatically displays all available authentication options in a dropdown menu, allowing users to select and configure their preferred authentication method before sending requests.

![Authentication dropdown in the API Explorer](/learn/_fern-img/a4c05f14561debdc68b1163692a2fcb73c006263f24061e313c30075c68fb296.webp)

Read the docs