License8.Lib.Service 0.81.0

dotnet add package License8.Lib.Service --version 0.81.0
                    
NuGet\Install-Package License8.Lib.Service -Version 0.81.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="License8.Lib.Service" Version="0.81.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="License8.Lib.Service" Version="0.81.0" />
                    
Directory.Packages.props
<PackageReference Include="License8.Lib.Service" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add License8.Lib.Service --version 0.81.0
                    
#r "nuget: License8.Lib.Service, 0.81.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package License8.Lib.Service@0.81.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=License8.Lib.Service&version=0.81.0
                    
Install as a Cake Addin
#tool nuget:?package=License8.Lib.Service&version=0.81.0
                    
Install as a Cake Tool

License8 Client Library

A .NET client library for the License8 API, providing simple and type-safe access to license management, device registration, and JWT authentication.

Installation

dotnet add package License8.Lib.Service

Quick Start

using License8.Lib.Service;

// Initialize the client
var client = new License8Client(
    baseUrl: "https://api.license8.com/v1/licenses",
    apiKey: "your-api-key",
    licenseeAppKey: "your-licensee-app-key"
);

// Authenticate with a license key
var authResponse = await client.AuthenticateWithLicenseKeyAsync("XXXXX-XXXXX-XXXXX-XXXXX");

if (authResponse.IsSuccess)
{
    var jwt = authResponse.Data!.Jwt!;
    Console.WriteLine($"Authenticated! License: {authResponse.Data.LicenseID}");

    // Register a device
    var deviceResponse = await client.RegisterNewDeviceAsync(
        jwt: jwt,
        deviceID: "unique-device-id",
        deviceLabel: "User's Laptop",
        machineName: Environment.MachineName
    );

    // Validate token
    var validation = await client.ValidateTokenAsync(jwt);
    Console.WriteLine($"Token valid: {validation.Data?.IsValid}");

    // List registered devices
    var devices = await client.ListRegisteredDevicesAsync(jwt);
    Console.WriteLine($"Total devices: {devices.Data?.Count ?? 0}");
}

// Server-side operations require appSecret
var appSecret = "your-app-secret"; // Fetch from secure config
var licenseDetails = await client.GetLicenseDetailsAsync(appSecret, "license-id");

API Methods

Methods return ApiResponse<T> with IsSuccess, Data, and Error properties unless noted otherwise.

System

Method Description
CheckApiStatusAsync() Check if the API is reachable (returns bool)

License Management (requires appSecret)

Method Description
ListLicensesAsync(appSecret, page, count) List licenses (paginated)
GetLicenseDetailsAsync(appSecret, licenseID) Get details for a specific license
CreateNewLicenseAsync(appSecret, orderID, maxDevices, licensePlan, simplifyLicenseKeys, ttlDays) Create a new license
CreateTrialLicenseAsync(appSecret, deviceID, email, ttlDays, simplifyLicenseKeys) Create a time-limited trial license
IssueLicenseTokenAsync(appSecret, licenseID, trialEmail?) Issue a JWT token for a license
RevokeLicenseAsync(appSecret, licenseID, reason) Revoke a license
SetLicenseExpireDateAsync(appSecret, licenseID, expireDate) Set or update a license expiration date
SetLicenseMaxDevicesAsync(appSecret, licenseID, maxDevices) Set or update the max devices for a license

Authentication

Method Description
AuthenticateWithLicenseKeyAsync(licenseKey) Authenticate with a license key and receive a JWT

Token Operations (requires jwt)

Method Description
ValidateTokenAsync(jwt) Validate a JWT token
RenewTokenAsync(jwt) Renew/refresh a JWT token

Device Management (requires jwt)

Method Description
ListRegisteredDevicesAsync(jwt) List all registered devices
RegisterNewDeviceAsync(jwt, deviceID, deviceLabel, machineName) Register a new device
DisableDeviceAsync(jwt, deviceIDHash) Disable a registered device

Features

  • License Management: Create, issue, revoke, and retrieve license details
  • Expiration & Limits: Set or update license expiration dates and max device limits
  • Device Registration: Register, list, and disable devices for licensed users
  • JWT Authentication: Authenticate, validate, and renew tokens
  • Trial Licenses: Issue time-limited trial licenses
  • Type-Safe: Strongly-typed request/response models with ApiResponse<T> wrapper
  • Async/Await: Full async support with cancellation tokens
  • Response Logging: Optional built-in request/response logging via enableLog constructor parameter

Documentation

For complete API documentation, visit https://license8.com/docs

License

MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.81.0 119 4/19/2026
0.80.1 108 4/17/2026
0.80.0 114 4/17/2026
0.22.1 137 1/31/2026
0.22.0 125 1/31/2026
0.21.0 124 1/25/2026
0.20.0 128 1/25/2026
0.18.0 123 1/24/2026
0.17.0 128 1/23/2026
0.16.2 126 1/23/2026
0.16.1 123 1/23/2026
0.16.0 123 1/14/2026
0.15.0 124 1/12/2026
0.14.0 144 12/30/2025
0.13.0 127 12/30/2025
0.12.0 203 12/23/2025
0.11.1 152 12/21/2025
0.11.0 238 11/3/2025
0.10.1 167 10/31/2025
0.10.0 169 10/31/2025
Loading failed