@using BTCPayServer.Client @using BTCPayServer.Controllers @using BTCPayServer.Security.GreenField @model ManageController.AddApiKeyViewModel @{ ViewData.SetActivePageAndTitle(ManageNavPages.APIKeys, "Add API Key"); }

@ViewData["Title"]

Generate a new api key to use BTCPay through its API.

@for (int i = 0; i < Model.PermissionValues.Count; i++) { @if (!Model.PermissionValues[i].Forbidden) {
@Model.PermissionValues[i].Description
} } @if (Model.StoreMode == ManageController.AddApiKeyViewModel.ApiKeyStoreMode.AllStores) {
@Model.StoreManagementPermission.Description
} else if (Model.StoreMode == ManageController.AddApiKeyViewModel.ApiKeyStoreMode.Specific) {
@Model.StoreManagementSelectivePermission.Title
@Model.StoreManagementSelectivePermission.Description
@if (!Model.Stores.Any()) {
You currently have no stores configured.
} @for (var index = 0; index < Model.SpecificStores.Count; index++) {
@if (Model.SpecificStores[index] == null) { } else { var store = Model.Stores.SingleOrDefault(data => data.Id == Model.SpecificStores[index]); }
} @if (Model.SpecificStores.Count < Model.Stores.Length) {
} }
@section Scripts { @await Html.PartialAsync("_ValidationScriptsPartial") }