> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-han-update-changelogs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> You can set authentication parameters to let users use their real API keys.

## Enabling Authentication

You can add an authentication method to your mint.json to enable it on every page or you can set it on a per-page basis.

The page's authentication method will override mint.json if both are set.

### Bearer Token

<CodeGroup>
  ```json mint.json
  "api": {
      "auth": {
          "method": "bearer"
      }
  }
  ```

  ```md Page Metadata
  ---
  title: "Your page title"
  authMethod: "bearer"
  ---
  ```
</CodeGroup>

### Basic Authentication

<CodeGroup>
  ```json mint.json
  "api": {
      "auth": {
          "method": "basic"
      }
  }
  ```

  ```md Page Metadata
  ---
  title: "Your page title"
  authMethod: "basic"
  ---
  ```
</CodeGroup>

### API Key

<CodeGroup>
  ```json mint.json
  "api": {
      "auth": {
          "method": "key",
          "name": "x-api-key"
      }
  }
  ```

  ```md Page Metadata
  ---
  title: "Your page title"
  authMethod: "key"
  ---
  ```
</CodeGroup>

### None

The "none" authentication method is useful to disable authentication on a specific endpoint after setting a default in mint.json.

<CodeGroup>
  ```md Page Metadata
  ---
  title: "Your page title"
  authMethod: "none"
  ---
  ```
</CodeGroup>
