Surebase.SDK 0.1.0

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

.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).

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 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. 
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.1.0 110 8/25/2026

See CHANGELOG.md