Clment.Sdk 0.1.0

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

Clment .NET SDK

Official client for the Clment contract-intelligence API. Generated from the published OpenAPI document, so it cannot drift from the API it calls.

dotnet add package Clment.Sdk

Get the region right

Your contracts and your API keys live in exactly one region, and a valid key sent to the wrong region fails exactly like an invalid one — a 401 that sends people hunting for a new key when the host was the problem. Set the base URL for your own region:

Region Base URL
United States https://api-us.clment.com/v1
European Union https://api-eu.clment.com/v1
United Kingdom https://api-uk.clment.com/v1
Australia https://api-au.clment.com/v1
New Zealand https://api-nz.clment.com/v1
Canada https://api-ca.clment.com/v1

Your region is shown in Settings → API & Integrations.

First call

using Clment.Sdk.Api;
using Clment.Sdk.Client;

var config = new Configuration
{
    // Your organisation's region: us | eu | uk | au | nz | ca
    BasePath = "https://api-nz.clment.com/v1",
};
// AccessToken, not AddApiKey: the client adds the "Bearer " prefix itself.
config.AccessToken = Environment.GetEnvironmentVariable("CLMENT_API_KEY");

var contracts = new ContractsApi(config);
var page = await contracts.ListContractsAsync(status: "active", take: 20);
Console.WriteLine($"{page.Data.Contracts.Count} of {page.Data.Total} active contracts");

Things worth knowing

  • Long-running work returns a job id. Uploads, reviews and redlines run in the background: call the start operation, then poll the matching job operation until it reports complete. A review runs for minutes; the start response carries an advisory estimateSeconds.

  • Uploads are not idempotent. The same file twice creates two contracts. Keep a record of what you have sent.

  • AI operations consume credits; reads are free. Check GetUsage / get_usage before a batch rather than discovering exhaustion as a 402 halfway through one.

  • Rate limits arrive as 429 with Retry-After. Retry 429, 5xx and connection failures; a 401, 403 or 404 will not fix itself.

  • Comparing two versions is a review with scope: two_version, not a separate endpoint.

  • A few field names are escaped by the generator. Where a name would collide with something in the target language it is renamed rather than dropped — the taxonomy's version arrives as VarVersion. If a property you expect is missing, look for a Var prefix.

Documentation

Building in TypeScript or JavaScript? Use @clment/sdk instead — it is hand-written over generated types and has a friendlier surface.

Licence

MIT © Contract Eagle Limited, trading as Clment.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 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. 
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.1.0 35 8/26/2026