Surebase.SDK
0.1.0
dotnet add package Surebase.SDK --version 0.1.0
NuGet\Install-Package Surebase.SDK -Version 0.1.0
<PackageReference Include="Surebase.SDK" Version="0.1.0" />
<PackageVersion Include="Surebase.SDK" Version="0.1.0" />
<PackageReference Include="Surebase.SDK" />
paket add Surebase.SDK --version 0.1.0
#r "nuget: Surebase.SDK, 0.1.0"
#:package Surebase.SDK@0.1.0
#addin nuget:?package=Surebase.SDK&version=0.1.0
#tool nuget:?package=Surebase.SDK&version=0.1.0
.NET SDK for Surebase
Official, API-key-authenticated .NET client for the Surebase B2B
insurance-as-a-service platform. This SDK covers exactly the resources
published to third-party developers via X-Api-Key — Products, Quotes,
Policies, Claims, and Usage reporting. It intentionally excludes
internal-only endpoints (dashboard/admin routes authenticated via JWT
session, not API key).
This package is generated from the canonical spec at openapi/openapi.yaml
in Stringify-Consulting/surebase-sdks — do not hand-edit generated
request/response shapes without first fixing them there.
Overview
This client is generated by the OpenAPI Generator
project (csharp target, generichost library — the modern DI-friendly
IHttpClientBuilder/IHostBuilder style, not the older RestSharp client).
- API version: 1.0.0
- Package version: 0.1.0
- Target framework: .NET 8.0
- For more information, please visit https://developers.surebase.it
Installation
dotnet add package Surebase.SDK
Usage
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Surebase.SDK.Api;
using Surebase.SDK.Client;
using Surebase.SDK.Model;
var host = Host.CreateDefaultBuilder(args)
.ConfigureApi((context, options) =>
{
ApiKeyToken token = new("<your API key>");
options.AddTokens(token);
options.AddApiHttpClients(client =>
{
// client configuration
});
})
.Build();
var productsApi = host.Services.GetRequiredService<IProductsApi>();
var response = await productsApi.ListMarketplaceProductsAsync();
var products = response.Ok();
See src/Surebase.SDK/README.md for the full
generated usage guide (retry/circuit-breaker middleware, token providers,
ApiResponse<T> vs. throwing call styles).
Documentation for API Endpoints
All URIs are relative to https://api.surebase.it
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ClaimsApi | AddClaimComment | POST /api/v1/claims/{claimId}/comments | Post a message to a claim's shared communication thread |
| ClaimsApi | AddClaimDocument | POST /api/v1/claims/{claimId}/document | Add a supporting document to a claim |
| ClaimsApi | ApproveClaim | POST /api/v1/claims/{claimId}/approve | Approve a claim |
| ClaimsApi | CreateClaim | POST /api/v1/claims | File a new claim against a policy |
| ClaimsApi | ListClaimDocuments | GET /api/v1/claims/{claimId}/document | List all supporting documents for a claim |
| ClaimsApi | RejectClaim | POST /api/v1/claims/{claimId}/reject | Reject a claim |
| ClaimsApi | UpdateClaim | PUT /api/v1/claims/{claim_id} | Update an existing claim |
| PoliciesApi | CancelPolicy | POST /api/v1/policies/{id}/cancel | Cancel a policy |
| PoliciesApi | CreatePolicy | POST /api/v1/policies | Issue a new policy from an approved quote |
| PoliciesApi | ExportPolicies | GET /api/v1/policies/export | Export policies (same filters as list) as CSV |
| PoliciesApi | GetPolicy | GET /api/v1/policies/{id} | Get a policy by ID |
| PoliciesApi | GetPolicyDocument | GET /api/v1/policies/{id}/document | Generate and download the policy schedule/certificate as a PDF |
| PoliciesApi | GetPolicyStats | GET /api/v1/policies/stats | Return policy counts by status |
| PoliciesApi | ListPolicies | GET /api/v1/policies | List policies for the caller's own organization, paginated |
| PoliciesApi | RenewPolicy | POST /api/v1/policies/{id}/renew | Renew a policy |
| PoliciesApi | SetPolicyAutoRenewal | PATCH /api/v1/policies/{id}/auto-renewal | Enable or disable auto-renewal for a policy |
| ProductsApi | GetProduct | GET /api/v1/products/{productId} | Get a product by ID |
| ProductsApi | GetProductCommissionSettings | GET /api/v1/products/{productId}/commission-settings | Get a product's commission settings |
| ProductsApi | ListMarketplaceProducts | GET /api/v1/products/marketplace | Browse all active products across all insurers (marketplace listing) |
| ProductsApi | ListProductCoverage | GET /api/v1/products/{productId}/coverage | List all coverage line items for a product |
| ProductsApi | ListProductPolicies | GET /api/v1/products/{productId}/policies | List policies issued against a product, scoped to the caller's own organization |
| QuotesApi | ApproveQuote | POST /api/v1/quotes/{quoteId}/approve | Approve a quote |
| QuotesApi | CreateQuote | POST /api/v1/quotes | Create a new quote for the caller's own broker organization |
| QuotesApi | ListQuotes | GET /api/v1/quotes | List quotes for the caller's own broker organization, newest first |
| QuotesApi | RejectQuote | POST /api/v1/quotes/{quoteId}/reject | Reject a quote |
| QuotesApi | SubmitQuote | POST /api/v1/quotes/{quoteId}/submit | Submit a draft quote for insurer review, moving it from Draft to Pending |
| UsageApi | GetApiUsage | GET /api/v1/reports/api-usage | Get the caller's own organization's API usage over a given number of days |
Documentation For Models
See docs/models — one file per model (Product, Quote,
Policy, Claim, ApiUsage, etc.).
Documentation For Authorization
Authentication scheme: ApiKeyAuth
- Type: API key
- API key parameter name: X-Api-Key
- Location: HTTP header
ApiKeyToken token = new("<your API key>");
options.AddTokens(token);
Author
developers@surebase.it
| Product | Versions 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. |
-
net8.0
- Microsoft.Extensions.Hosting (>= 8.0.1)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Http.Polly (>= 8.0.20)
- Microsoft.Net.Http.Headers (>= 8.0.17)
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 | 110 | 8/25/2026 |
See CHANGELOG.md