C# SDK

Official C# SDK for Keymint with full async/await support. Integrate concurrent licensing and machine fingerprint binding into .NET applications.

Installation

bash
dotnet add package Keymint

Supports .NET Standard 2.0+.

Quick Start

csharp
using KeyMint.Services;

var admin = new KeyMintSDK("YOUR_ADMIN_API_KEY");
var client = new KeyMintSDK("YOUR_CLIENT_API_KEY");

// Create a key with authorized hosts
var createResult = await admin.CreateKey(new CreateKeyParams {
    ProductId = "prod_Nx8K2mLpQ4rVtW9sBc",
    AllowedHosts = new List<string> { "machine-a", "machine-b" }
});

// Activate a license
var result = await client.ActivateKey(new ActivateKeyParams {
    ProductId = "prod_Nx8K2mLpQ4rVtW9sBc",
    LicenseKey = "XXXXX-XXXXX-XXXXX-XXXXX",
    HostId = "machine-a"
});

if (result.IsSuccess) {
    Console.WriteLine(result.Data.Message); // "License valid"
}

Use client keys for activation/deactivation/floating sessions. Use admin keys for create/update/block/unblock/sign and customer management. Use read-only or admin keys for detailed key lookup. Any key carrying the matching grant (license:activate, license:manage, license:sign, license:read, customer:read/write) works on any scope — see key permissions in the dashboard.

Resources