TemporaryEmail.Contracts 1.0.0

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

TemporaryEmail.Contracts

This package ships the contract models and typed client helpers used to interact with the TemporaryEmail API.

Features

  • Strongly-typed request/response models for API keys, mailboxes, domains, usage, and webhooks.
  • Dependency injection extensions (RegisterTemporaryEmail) for configuring the HTTP client in ASP.NET Core.
  • Built-in API key handler that consistently applies the X-Api-Key header required by the service.

Getting Started

services.RegisterTemporaryEmail(options =>
{
    options.ApiKey = "{your-api-key}";
});

Inject ITemporaryEmailClient anywhere you need to interact with the API and call the provided methods.

BaseAddress defaults to https://api.temporaryemail.ai; override it only when pointing to another environment.

Building the Package

From the repository root you can run ./TemporaryEmail/pack-contracts.sh to produce the NuGet package in artifacts/nuget. The script forwards any extra arguments to dotnet pack, so you can append flags like --no-build if needed.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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
1.0.0 212 10/9/2025