WAservix 1.0.1

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

WAservix .NET client

NuGet

WAservix WhatsApp API Gateway - official C#/.NET client: send WhatsApp messages from your own number. By Tekservix.

C# / .NET client for the WAservix WhatsApp API Gateway.

WAservix links your own WhatsApp number by QR code (the same way WhatsApp Web does) and gives you a REST API to send text, images, video, audio, documents, locations, polls and more, with webhooks for incoming messages and status updates.

  • .NET Standard 2.0 and .NET 8: works on .NET Framework 4.6.1+, .NET Core, .NET 5-9
  • Async everywhere, CancellationToken support, works with IHttpClientFactory
  • Webhook check built in

Install

dotnet add package WAservix

Quick start

Copy your device's API key from the WAservix dashboard (Devices → API key) and keep it on your server.

using Tekservix.WAservix;

var wa = new WAservixClient(Environment.GetEnvironmentVariable("WASERVIX_KEY"));

var res = await wa.SendTextAsync("+15551234567", "Hello Aline, your order is ready");
Console.WriteLine($"{res.GetProperty("msgId")} {res.GetProperty("status")}"); // 58213 in_progress

Sending

Messages are queued and sent one at a time per number, so each call returns right away with status: "in_progress" and a msgId.

// Image with caption
await wa.SendImageAsync("+15551234567", "https://example.com/product.jpg", "Back in stock");

// Document
await wa.SendDocumentAsync("+15551234567", "https://example.com/inv-1042.pdf", "Invoice-1042.pdf", "Your invoice");

// Anything the API supports, including groups (JID ending in @g.us)
await wa.SendMessageAsync("120363040000000000@g.us", new Dictionary<string, object?> { ["text"] = "Team meeting at 3pm" });
await wa.SendMessageAsync("+15551234567", new Dictionary<string, object?>
{
    ["location"] = new { latitude = -1.9441, longitude = 30.0619, name = "Our shop" },
});

Status, contacts and groups

var info  = await wa.GetMessageInfoAsync(58213);      // queued, sent, delivered, read, played or failed
var check = await wa.OnWhatsAppAsync("+15551234567"); // { "exists": true, "jid": "..." }
var conn  = await wa.GetStatusAsync();                // { "status": "connected" }

await wa.EditMessageAsync(58213, "Corrected text");   // own text messages, about 15 minutes
var groups = await wa.ListGroupsAsync();

Anything else in the API reference is one call away:

await wa.RequestAsync(HttpMethod.Post, "/messages/read", new { msgId = "3EB0X123456789" });

ASP.NET Core

builder.Services.AddHttpClient<WAservixClient>((http, sp) =>
    new WAservixClient(builder.Configuration["WAservix:ApiKey"], httpClient: http));

Webhooks

Set a webhook URL and events for the number in the dashboard. Each request carries X-Webhook-Signature, which equals the device's webhook secret. Minimal API example:

app.MapPost("/wa/webhook", async (HttpRequest req) =>
{
    if (!WAservixClient.VerifyWebhook(req.Headers["X-Webhook-Signature"], builder.Configuration["WAservix:WebhookSecret"]))
        return Results.Unauthorized();

    var payload = await JsonDocument.ParseAsync(req.Body);
    if (payload.RootElement.GetProperty("event").GetString() == "messages.received")
    {
        var m = payload.RootElement.GetProperty("data").GetProperty("messages");
        Console.WriteLine($"{m.GetProperty("key").GetProperty("cleanedSenderPn")}: {m.GetProperty("messageBody")}");
    }
    return Results.Ok(); // acknowledge fast; queue slow work
});

Errors

Failed calls throw WAservixException with Status, Message, Errors and, on 429, RetryAfter. A 503 means the device is reconnecting: retry shortly.

Never ship the key inside a desktop, MAUI or Blazor WebAssembly app: anyone could read it. Call the API from your server.

Migrating from WaSender

WAservix accepts the same /send-message body and webhook fields as WaSender, so most integrations switch by changing the base URL and key. See the compatibility notes.

Use it responsibly

WAservix is not Meta's official WhatsApp Business Platform. There's no business verification and no per-conversation fee, but WhatsApp's spam rules apply to your number directly. Message people who expect to hear from you, warm up new numbers slowly and keep the built-in account protection on.

More from Tekservix

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 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. 
.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
1.0.1 77 11/11/2026
1.0.0 81 11/10/2026