BellaBaxter.Client
0.2.0
dotnet add package BellaBaxter.Client --version 0.2.0
NuGet\Install-Package BellaBaxter.Client -Version 0.2.0
<PackageReference Include="BellaBaxter.Client" Version="0.2.0" />
<PackageVersion Include="BellaBaxter.Client" Version="0.2.0" />
<PackageReference Include="BellaBaxter.Client" />
paket add BellaBaxter.Client --version 0.2.0
#r "nuget: BellaBaxter.Client, 0.2.0"
#:package BellaBaxter.Client@0.2.0
#addin nuget:?package=BellaBaxter.Client&version=0.2.0
#tool nuget:?package=BellaBaxter.Client&version=0.2.0
BellaBaxter.Client
Auto-generated .NET HTTP client for the Bella Baxter secrets management API.
Includes built-in end-to-end encryption via BellaBaxter.Crypto.
When to use BellaBaxter.Client directly
Most applications should use the higher-level packages instead:
| Goal | Use |
|---|---|
Pull secrets into IConfiguration (hot-reload) |
BellaBaxter.AspNet.Configuration |
| Wire Bella into .NET Aspire orchestration | BellaBaxter.Aspire.Configuration |
| Scripts, tools, custom integrations | BellaBaxter.Client (this package) |
| Run the full Bella stack locally in Aspire | BellaBaxter.Aspire.Host |
Installation
dotnet add package BellaBaxter.Client
Quickstart
using BellaBaxter.Client;
var client = BellaClientFactory.Create(
apiUrl: "https://api.bella-baxter.io",
apiKey: Environment.GetEnvironmentVariable("BELLA_BAXTER_API_KEY")!
);
// List secrets for an environment
var secrets = await client.Environments.GetSecretsAsync(environmentId);
foreach (var secret in secrets)
{
Console.WriteLine($"{secret.Key} = {secret.Value}");
}
Authentication
API key (recommended for apps and CI/CD)
An API key belongs to one environment. In the Bella WebApp, open the project, choose the Environments tab,
open the environment, choose its API Keys tab, then choose Create API Key. The key
(bax-<keyId>-<secret>) is shown once, when it is created.
var client = BellaClientFactory.Create(
apiUrl: Environment.GetEnvironmentVariable("BELLA_BAXTER_URL")!,
apiKey: Environment.GetEnvironmentVariable("BELLA_BAXTER_API_KEY")!
);
API keys encode the project and environment slug — no .bella file needed.
Billed on pay-as-you-go plans. The bella api-keys commands are planned and are not in the CLI yet.
OAuth (local dev)
bella login # opens browser, stores token in .bella file
bella sdk run -- dotnet run # injects BELLA_BAXTER_API_KEY + BELLA_BAXTER_URL automatically
End-to-end encryption
Secret values are encrypted client-side using ECIES (Elliptic Curve Integrated Encryption Scheme) before being sent to the Baxter API. This means secret values are never transmitted or stored in plaintext — even the Baxter server itself cannot read them.
Decryption happens transparently in BellaBaxter.Client using your private key. The encryption is provided
by BellaBaxter.Crypto, which is a dependency of this package.
API coverage
| Resource | Methods |
|---|---|
| Projects | List, Get, Create, Update, Delete |
| Environments | List, Get, Create, Update, Delete |
| Secrets | List, Get, Upsert, Delete, Export (.env) |
| Providers | List, Get, Create, Update, Delete |
| Users | List, Get, Invite, Remove |
| API Keys | List, Create, Revoke |
Regenerating the client
BellaBaxter.Client is generated from the Bella Baxter OpenAPI spec using Kiota.
To regenerate after an API change:
cd apps/sdk
./generate.sh
Webhook signature verification
BellaBaxter.Client includes a WebhookSignatureVerifier for verifying HMAC-signed webhook payloads from Bella:
using BellaBaxter.Client;
var verifier = new WebhookSignatureVerifier(signingSecret: "whsec-...");
bool isValid = verifier.Verify(
payload: requestBody,
signatureHeader: Request.Headers["X-Bella-Signature"]
);
| Product | Versions 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. |
-
net10.0
- BellaBaxter.Crypto (>= 0.2.0)
- Microsoft.Extensions.Configuration (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Http (>= 10.0.7)
- Microsoft.Extensions.Http.Resilience (>= 10.5.0)
- Microsoft.Kiota.Http.HttpClientLibrary (>= 1.22.1)
- Microsoft.Kiota.Serialization.Form (>= 1.22.1)
- Microsoft.Kiota.Serialization.Json (>= 1.22.1)
- Microsoft.Kiota.Serialization.Multipart (>= 1.22.1)
- Microsoft.Kiota.Serialization.Text (>= 1.22.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BellaBaxter.Client:
| Package | Downloads |
|---|---|
|
BellaBaxter.AspNet.Configuration
ASP.NET Core IConfiguration provider that polls Baxter API for secrets with automatic hot-reload. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0 | 0 | 11/26/2026 |
| 0.1.2 | 133 | 11/18/2026 |
| 0.1.1-preview.150 | 74 | 11/17/2026 |
| 0.1.1-preview.149 | 74 | 11/17/2026 |
| 0.1.1-preview.148 | 77 | 11/16/2026 |
| 0.1.1-preview.147 | 79 | 11/15/2026 |
| 0.1.1-preview.146 | 74 | 11/13/2026 |
| 0.1.1-preview.145 | 81 | 11/11/2026 |
| 0.1.1-preview.144 | 80 | 11/6/2026 |
| 0.1.1-preview.142 | 88 | 10/28/2026 |
| 0.1.1-preview.141 | 88 | 10/26/2026 |
| 0.1.1-preview.140 | 86 | 10/24/2026 |
| 0.1.1-preview.138 | 81 | 10/20/2026 |
| 0.1.1-preview.137 | 91 | 10/19/2026 |
| 0.1.1-preview.136 | 95 | 10/18/2026 |
| 0.1.1-preview.135 | 86 | 10/16/2026 |
| 0.1.1-preview.134 | 92 | 10/15/2026 |
| 0.1.1-preview.133 | 90 | 10/13/2026 |
| 0.1.1-preview.132 | 89 | 10/12/2026 |
| 0.1.1-preview.131 | 580 | 10/10/2026 |