@namespace BTCPayServer.Client @model BTCPayServer.Controllers.ManageController.ApiKeysViewModel @{ ViewData.SetActivePage(ManageNavPages.APIKeys, "API Keys"); }

@ViewData["Title"]

The BTCPay Server Greenfield API offers programmatic access to your instance. You can manage your BTCPay Server (e.g. stores, invoices, users) as well as automate workflows and integrations (see use case examples). For that you need the API keys, which can be generated here. Find more information in the API authentication docs.

Generate Key @if (Model.ApiKeyDatas.Any()) { @{ var index = 0; } @foreach (var keyData in Model.ApiKeyDatas) { index++; }
Label Key Permissions Actions
@keyData.Label @keyData.Id Click to reveal @{ var permissions = keyData.GetBlob().Permissions; } @if (!permissions.Any()) { No permissions } else {
    @foreach (var permission in Permission.ToPermissions(permissions).Select(c => c.ToString()).Distinct().ToArray()) {
  • @permission
  • }
}
Delete -
} @section PageHeadContent { } @section PageFootContent { }