CasCap.Api.SignalCli.AspNetCore 0.12.0

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

CasCap.Api.SignalCli.AspNetCore

Authenticated, read-only Signal query endpoints for .NET 10/11 ASP.NET Core applications. The package exposes SignalCliController over CasCap.Api.SignalCli without adding MVC dependencies to worker applications.

Installation

dotnet package add CasCap.Api.SignalCli.AspNetCore

Controller

SignalCliController is a thin pass-through over ISignalCliClient. Every action flows the request abort token into the underlying call, and maps a null result to 404 Not Found rather than 200 OK with a null body.

Method Route Description
GetAbout GET /api/v1/signalcli/about Returns signal-cli version and build info
GetConfiguration GET /api/v1/signalcli/configuration Retrieves the signal-cli configuration
ListAccounts GET /api/v1/signalcli/accounts Lists all registered accounts
ListContacts GET /api/v1/signalcli/contacts?number= Lists contacts for an account
ListGroups GET /api/v1/signalcli/groups?number= Lists groups for an account
ListLinkedDevices GET /api/v1/signalcli/devices?number= Lists linked devices for an account
ListIdentities GET /api/v1/signalcli/identities?number= Lists known identities for an account
ListAttachments GET /api/v1/signalcli/attachments Lists all stored attachment identifiers
ListStickerPacks GET /api/v1/signalcli/sticker-packs?number= Lists installed sticker packs for an account

The controller carries [Authorize]. Configure an authentication scheme in the host; the endpoints expose account metadata, contacts and group membership and must not be left anonymous.

Registration

In an ASP.NET Core host with its authentication scheme and authorization services already configured, register the controller assembly, MVC API versioning and the Signal client:

using Asp.Versioning;
using CasCap.Controllers;
using CasCap.Extensions;

builder.Services.AddSignalCli(builder.Configuration);

builder.Services.AddControllers()
    .AddApplicationPart(typeof(SignalCliController).Assembly);

builder.Services.AddApiVersioning(options =>
{
    options.DefaultApiVersion = new ApiVersion(1.0);
    options.AssumeDefaultVersionWhenUnspecified = true;
}).AddMvc();

var app = builder.Build();
app.UseAuthentication();
app.UseAuthorization();
app.MapControllers();
await app.RunAsync();

builder is the host's WebApplicationBuilder. AddSignalCli supplies ISignalCliClient, the controller's only constructor dependency. It requires the same account and endpoint settings as the core package configuration.

The controller does not select an authentication scheme for you. Do not remove [Authorize] to work around missing host authentication.

License

Released under the MIT License.

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.  net11.0 is compatible. 
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.12.0 88 11/14/2026
0.11.12 97 11/5/2026
0.11.11 107 11/1/2026
0.11.10 111 10/24/2026
0.11.9 106 10/21/2026
0.11.8 120 10/4/2026
0.11.7 112 9/29/2026
0.11.6 110 9/26/2026
0.11.5 128 9/25/2026
0.11.4 98 9/24/2026
0.11.3 102 9/24/2026
0.11.2 104 9/23/2026
0.11.1 115 9/21/2026
0.11.0 114 9/19/2026
0.10.32 120 9/13/2026
0.10.31 107 9/11/2026