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

"api": {
    "auth": {
        "method": "bearer"
    }
}

Basic Authentication

"api": {
    "auth": {
        "method": "basic"
    }
}

API Key

"api": {
    "auth": {
        "method": "key",
        "name": "x-api-key"
    }
}

None

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

---
title: "Your page title"
authMethod: "none"
---

Was this page helpful?