Nefarius.Kanboard.API
1.0.0-pre002
Prefix Reserved
.NET 10.0
This package targets .NET 10.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
This is a prerelease version of Nefarius.Kanboard.API.
dotnet add package Nefarius.Kanboard.API --version 1.0.0-pre002
NuGet\Install-Package Nefarius.Kanboard.API -Version 1.0.0-pre002
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="Nefarius.Kanboard.API" Version="1.0.0-pre002" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nefarius.Kanboard.API" Version="1.0.0-pre002" />
<PackageReference Include="Nefarius.Kanboard.API" />
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 Nefarius.Kanboard.API --version 1.0.0-pre002
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nefarius.Kanboard.API, 1.0.0-pre002"
#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 Nefarius.Kanboard.API@1.0.0-pre002
#: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=Nefarius.Kanboard.API&version=1.0.0-pre002&prerelease
#tool nuget:?package=Nefarius.Kanboard.API&version=1.0.0-pre002&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Nefarius.Kanboard.API
Strongly-typed C# client library for the Kanboard JSON-RPC API and framework-agnostic webhook payload models with token verification.
Features
- Full coverage of the Kanboard JSON-RPC 2.0 REST API surface, grouped into discoverable sub-clients (
Tasks,Projects,Comments,Users, etc.) - Inbound webhook payload models for all 18 Kanboard events with constant-time token verification
- Handles Kanboard's quirky JSON encoding (numbers as strings, booleans as
"0"/"1", unix timestamps as strings) - Targets
netstandard2.0andnet10.0— works with .NET Framework 4.6.2+ and modern .NET - Designed for
IHttpClientFactory/ dependency injection;HttpClientis injected externally
Installation
dotnet add package Nefarius.Kanboard.API
Quick Start — REST API Client
using Nefarius.Kanboard.API.Client;
// Application API (token-based, no user session, full access)
var options = KanboardClientOptions.ForApplicationApi(
endpoint: new Uri("https://my-kanboard.example.com/jsonrpc.php"),
apiToken: "MY_API_TOKEN");
// Or User API (username + password or personal access token)
// var options = KanboardClientOptions.ForUserApi(
// endpoint: new Uri("https://my-kanboard.example.com/jsonrpc.php"),
// username: "admin",
// password: "secret");
using var httpClient = new HttpClient();
var client = new KanboardClient(httpClient, options);
// Create a task
int taskId = await client.Tasks.CreateAsync(new CreateTaskRequest
{
Title = "My first task",
ProjectId = 1
});
// Get a task
KanboardTask task = await client.Tasks.GetAsync(taskId);
Console.WriteLine(task.Title);
// List all active tasks in a project
IReadOnlyList<KanboardTask> tasks = await client.Tasks.GetAllAsync(projectId: 1, statusId: 1);
// Move a task to another column
await client.Tasks.MovePositionAsync(projectId: 1, taskId: taskId, columnId: 3, position: 1, swimlaneId: 0);
Quick Start — Webhook Receiver
Kanboard POSTs JSON to your configured webhook URL with a ?token= query parameter for origin verification.
using Nefarius.Kanboard.API.Webhooks;
// In your HTTP handler / controller / minimal API endpoint:
string receivedToken = httpRequest.Query["token"];
string body = await new StreamReader(httpRequest.Body).ReadToEndAsync();
// 1. Verify the token (constant-time comparison)
if (!WebhookTokenValidator.IsValid(receivedToken, "YOUR_WEBHOOK_SECRET"))
{
return Results.Unauthorized();
}
// 2. Parse the envelope
WebhookEnvelope envelope = KanboardWebhookParser.Parse(body);
// 3. Dispatch on event name
switch (envelope.EventName)
{
case KanboardWebhookEvents.TaskCreate:
var data = KanboardWebhookParser.GetData<TaskEventData>(envelope);
Console.WriteLine($"New task created: {data.Task.Title}");
break;
case KanboardWebhookEvents.CommentCreate:
var commentData = KanboardWebhookParser.GetData<CommentEventData>(envelope);
Console.WriteLine($"Comment on task #{commentData.Task.Id}: {commentData.Comment.Content}");
break;
case KanboardWebhookEvents.TaskMoveColumn:
var moveData = KanboardWebhookParser.GetData<TaskEventData>(envelope);
Console.WriteLine($"Task moved from column {moveData.Changes?.SrcColumnId} to {moveData.Changes?.DstColumnId}");
break;
}
Supported Webhook Events
| Constant | Event name |
|---|---|
KanboardWebhookEvents.CommentCreate |
comment.create |
KanboardWebhookEvents.CommentUpdate |
comment.update |
KanboardWebhookEvents.CommentDelete |
comment.delete |
KanboardWebhookEvents.TaskFileCreate |
task.file.create |
KanboardWebhookEvents.TaskMoveProject |
task.move.project |
KanboardWebhookEvents.TaskMoveColumn |
task.move.column |
KanboardWebhookEvents.TaskMovePosition |
task.move.position |
KanboardWebhookEvents.TaskMoveSwimlane |
task.move.swimlane |
KanboardWebhookEvents.TaskUpdate |
task.update |
KanboardWebhookEvents.TaskCreate |
task.create |
KanboardWebhookEvents.TaskClose |
task.close |
KanboardWebhookEvents.TaskOpen |
task.open |
KanboardWebhookEvents.TaskAssigneeChange |
task.assignee_change |
KanboardWebhookEvents.SubtaskUpdate |
subtask.update |
KanboardWebhookEvents.SubtaskCreate |
subtask.create |
KanboardWebhookEvents.SubtaskDelete |
subtask.delete |
KanboardWebhookEvents.TaskInternalLinkCreateUpdate |
task_internal_link.create_update |
KanboardWebhookEvents.TaskInternalLinkDelete |
task_internal_link.delete |
API Groups
| Property | Covers |
|---|---|
client.Application |
Version, timezone, colors, roles |
client.Tasks |
CRUD, search, move, open/close |
client.Subtasks |
CRUD for subtasks |
client.SubtaskTimeTracking |
Time tracking on subtasks |
client.Comments |
CRUD for comments |
client.Categories |
CRUD for categories |
client.Columns |
CRUD for board columns |
client.Swimlanes |
CRUD for swimlanes |
client.Board |
Board layout |
client.Projects |
CRUD for projects |
client.ProjectPermissions |
Project user/group permissions |
client.ProjectMetadata |
Project metadata key/value |
client.Users |
CRUD for users |
client.Groups |
CRUD for groups |
client.GroupMembers |
Group membership |
client.Me |
Current user session, dashboard, activity |
client.Links |
Link label definitions |
client.TaskLinks |
Internal task-to-task links |
client.TaskExternalLinks |
External links on tasks |
client.Tags |
Tag management |
client.Files |
Project and task file attachments |
client.AutomaticActions |
Automatic action management |
Documentation
| Product | Versions 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 was computed. 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 is compatible. 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.
-
.NETStandard 2.0
- System.Text.Json (>= 10.0.9)
-
net10.0
- No dependencies.
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 |
|---|---|---|
| 1.0.0-pre002 | 85 | 7/7/2026 |
| 1.0.0-pre001 | 71 | 7/7/2026 |