@model TokensViewModel @{ Layout = "../Shared/_NavLayout.cshtml"; ViewData.SetActivePageAndTitle(StoreNavPages.Tokens, "Access Tokens"); } @if (Model.StoreNotConfigured) { }

Access token

Authorize a public key to access Bitpay compatible Invoice API (More information)

Create a new token @if (Model.Tokens.Any()) { @foreach (var token in Model.Tokens) { }
Label Actions
@token.Label See information - Revoke
}

Legacy API Keys

Alternatively, you can use the invoice API by including the following HTTP Header in your requests:
Authorization: Basic @Model.EncodedApiKey

@if (string.IsNullOrEmpty(Model.ApiKey)) {
} else {
}