Kontent.Ai.Management 9.1.0

dotnet add package Kontent.Ai.Management --version 9.1.0
                    
NuGet\Install-Package Kontent.Ai.Management -Version 9.1.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="Kontent.Ai.Management" Version="9.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kontent.Ai.Management" Version="9.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Kontent.Ai.Management" />
                    
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 Kontent.Ai.Management --version 9.1.0
                    
#r "nuget: Kontent.Ai.Management, 9.1.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 Kontent.Ai.Management@9.1.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=Kontent.Ai.Management&version=9.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Kontent.Ai.Management&version=9.1.0
                    
Install as a Cake Tool

Kontent.ai Management SDK for .NET

Stable Latest Downloads

The official .NET SDK for the Kontent.ai Management API — programmatic read/write access to your environments: content items, language variants, content models, assets, taxonomies, workflows and administration.

Use this SDK to author and manage content. To serve published content to an application, use the Delivery SDK instead.

Guides

Guide What it answers
Configuration Register a client, bind options, name several, tune retries and timeouts
Requests and results Handle failures, choose an identifier, page through large listings
Content items and variants Write and publish language variants, move them through a workflow
Models and rich text Use generated content-type records, author rich text and inline components
Assets Upload files, create assets, organize them
Content model Change content types, snippets and taxonomies
Administration Languages, workflows, spaces, webhooks, subscription-scoped endpoints
Upgrade guides One per major: 8 → 9

Installation

dotnet add package Kontent.Ai.Management

Targets net10.0. See the changelog for what each release changed.

Coming from 8.x, read 8 → 9 first — the API changed shape throughout.

Prerequisites

  • The Management API must be activated for your environment.
  • A Management API key, and your environment ID — both from Environment settings → API keys in Kontent.ai. See Making requests.
  • Subscription-scoped endpoints need a different key — see subscription-scoped operations.

Quick Start

A standalone client, which suits a script or a simple app. Replace on_roasts with a content item codename that exists in your environment.

using Kontent.Ai.Management;
using Kontent.Ai.Management.Configuration;
using Kontent.Ai.Management.Models.Shared;

await using var client = new ManagementClient(new ManagementOptions
{
    EnvironmentId = "<YOUR_ENVIRONMENT_ID>",
    ApiKey = "<YOUR_API_KEY>"
});

var result = await client.GetContentItemAsync(Reference.ByCodename("on_roasts"));

if (result.IsSuccess)
{
    Console.WriteLine(result.Value.Name);
}
else
{
    Console.WriteLine($"{result.StatusCode}: {result.Error?.Message}");
}

That returns the item's metadata. Element values live in its language variants — see content items and variants.

Use in an application

Register the client and inject IManagementClient:

using Kontent.Ai.Management.Extensions;

services.AddManagementClient(management => management.Options.Configure(options =>
{
    options.EnvironmentId = "<YOUR_ENVIRONMENT_ID>";
    options.ApiKey = "<YOUR_API_KEY>";
}));

Binding from configuration, several named clients, and transport customization are in configuration.

Essential behavior

  • Failures come back as results, not exceptions. IsSuccess is the check; a try/catch will not fire. Cancellation and usage errors do throw — details.
  • The container owns a registered client. Dispose only one you built yourself — details.
  • ListXAsync fetches and buffers every page before returning, and is all-or-nothing. Use the ListXPageAsync overload for large sets — details.
  • Retries depend on the HTTP method. Every method retries on 429; other transient failures retry only GET, HEAD, OPTIONS, PUT and DELETE, so a POST or PATCH that fails mid-flight is never replayed — details.
  • A multi-call helper is not a transaction. CreateContentItemWithVariantAsync can leave an item with no variant — details.

Contributing

See the contributing page for where to file issues, start discussions, and begin contributing.

License

Distributed under the MIT License — see LICENSE.md for details.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Kontent.Ai.Management:

Package Downloads
Kontent.Ai.ModelGenerator.Core

Core library for the Kontent.ai model generator. Provides the code-generation primitives that emit modern record-based C# models for use with the Kontent.ai Delivery SDK for .NET (v19+). Typically consumed indirectly via the Kontent.Ai.ModelGenerator CLI tool.

Nield.KontentAI.MAPI.Helpers

Helpers to be used with Kontent.AI's Management API

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.1.0 104 9/23/2026
9.0.0 212 9/16/2026
9.0.0-rc.3 70 9/8/2026
9.0.0-rc.2 847 8/12/2026
9.0.0-rc.1 189 8/7/2026
9.0.0-beta-5 310 8/3/2026
9.0.0-beta-4 144 7/20/2026
9.0.0-beta-3 117 7/13/2026
9.0.0-beta-2 121 7/9/2026
9.0.0-beta-1 146 6/26/2026
8.3.1 9,883 7/17/2026
8.3.0 1,066 6/5/2026
8.2.0 14,492 4/8/2026
8.1.0 5,592 2/11/2026
8.0.0 171 2/9/2026
7.0.2 1,683 2/4/2026
7.0.1 7,810 12/4/2025
7.0.0 3,391 11/14/2025
6.9.1 4,416 11/5/2025
Loading failed