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

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.

@{ var index = 0; } @foreach (var keyData in Model.ApiKeyDatas) { index++; } @if (!Model.ApiKeyDatas.Any()) { }
Label Key Permissions Actions
@keyData.Label @keyData.Id @{ 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 -
No API keys
Generate new key @section PageHeadContent { } @section PageFootContent { }