C#
C# SDK
Install and start using the official asynchronous Insion .NET client
The official Insion C# SDK lets .NET applications moderate content, ingest records, manage users, and submit appeals without constructing HTTP requests. This guide walks you through installing the package, creating an authenticated client, and sending a record for immediate moderation.
Before you begin
You'll need:
- An Insion account.
- An API key from the Developer section of your dashboard.
- A .NET project with the .NET CLI available.
Use immediate moderation when your application needs a decision in the current request. Use ingestion when moderation can happen asynchronously and your application receives the result through a webhook.
Install
dotnet add package InsionMake your first request
using Insion;
var client = new InsionClient("<token>");
var result = await client.ModerateARecordAsync(new ModerateRequest
{
ClientId = "post-123", Name = "Welcome post", Entity = "post", Content = "Hello world",
});All operations are asynchronous, accept cancellation, and return typed results.
Next steps
- Fine-tune client and request behavior in Configuration.
- Explore every supported request and response in Operations.
- Prepare production error handling with Errors.
Get Involved
How is this guide?