diff --git a/BTCPayServer/Views/Manage/APIKeys.cshtml b/BTCPayServer/Views/Manage/APIKeys.cshtml index 612d3a097..fdc00d54d 100644 --- a/BTCPayServer/Views/Manage/APIKeys.cshtml +++ b/BTCPayServer/Views/Manage/APIKeys.cshtml @@ -1,92 +1,87 @@ @namespace BTCPayServer.Client @model BTCPayServer.Controllers.ManageController.ApiKeysViewModel @{ - ViewData.SetActivePageAndTitle(ManageNavPages.APIKeys, "Manage your API Keys"); + ViewData.SetActivePageAndTitle(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.

- - - - - - - - - - - @{ - var index = 0; - } - @foreach (var keyData in Model.ApiKeyDatas) - { - - - - - - - index++; - } - @if (!Model.ApiKeyDatas.Any()) - { - - - - } - -
LabelKeyPermissionsActions
@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 +@if (Model.ApiKeyDatas.Any()) +{ + + + + + + + + + + + @{ + var index = 0; + } + @foreach (var keyData in Model.ApiKeyDatas) + { + + + + + + + index++; + } + +
LabelKeyPermissionsActions
@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 { -} - +} \ No newline at end of file