Veille 0.1.0

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

Veille .NET SDK

The official .NET SDK for the Veille fraud prevention API.

Validate emails, domains, IPs, VAT numbers and IBANs in milliseconds to block fake sign-ups, bots and fraud.

The SDK exposes 11 typed async methods, one per documented endpoint (with required properties checked at compile time), plus a generic RequestAsync.

Requirements

  • .NET 8 or newer

Installation

dotnet add package Veille

Get your API key

Sign up for Veille or sign in, then copy your API key from the dashboard. new VeilleClient() reads the VEILLE_API_KEY environment variable.

Quick start

using Veille;

using var client = new VeilleClient();
var response = await client.IntelligenceEmailAsync(new IntelligenceEmailParams { Query = "jane.doe@example.com" });
Console.WriteLine(response.Json);

Parameter classes mirror the API reference. Use response.Deserialize<MyType>() to map the JSON onto your own types.

Async jobs

Any call accepts is_async: true (useful past the 60-second server limit): the response is then a job_id. WaitForJobAsync polls GET /v1/jobs/{id} until a terminal status (CompletedJob, Error, NotFound, BadRequest):

var submitted = await client.IntelligenceEmailAsync(new IntelligenceEmailParams { Query = "jane.doe@example.com", IsAsync = true });
var job = await client.WaitForJobAsync(
    submitted.Json.GetProperty("job_id").GetString()!,
    onProgress: j => Console.WriteLine($"{j.GetProperty("status")} {j.GetProperty("progress")}%"));

GET or POST

Methods use GET when the endpoint supports it (query string). POST sends the same parameters as JSON:

Any endpoint

var response = await client.RequestAsync("GET", "/v1/usage");

Errors

try
{
    await client.IntelligenceEmailAsync(new IntelligenceEmailParams { Query = "jane.doe@example.com" });
}
catch (VeilleApiException exception)
{
    Console.Error.WriteLine($"{exception.StatusCode}: {exception.Message}");
}
Exception When
VeilleConfigurationException Missing API key, invalid options or unsupported method.
VeilleSerializationException A required parameter is missing or a value can't be sent.
VeilleTransportException Network failure or timeout.
VeilleApiException Non-2xx status (StatusCode, ErrorMessage, ResponseBody, RawResponse).
VeilleResponseDecodingException A success response could not be decoded.

All of them derive from VeilleException. Caller cancellation surfaces as OperationCanceledException.

Retries

Requests are retried up to 3 times after a network error, a 408, 500, 502, 503 or 504, or a rate limit — which the API returns as 401 (or 429) with a Rate limit exceeded message. Per-key quota errors (…: quota daily) are not retried, nor are 400, 402, 404 or client-side timeouts. The delay starts at 1 second and grows 1.5× per retry (capped at 30 seconds); a Retry-After header wins.

using var client = new VeilleClient(new VeilleClientOptions { MaxRetries = 5, RetryDelay = TimeSpan.FromMilliseconds(500) });
await client.IntelligenceEmailAsync(new IntelligenceEmailParams { Query = "jane.doe@example.com" }, new RequestOptions { MaxRetries = 0 }); // one request without retries

Batch requests

BatchAsync runs a function per item with at most 10 in flight (concurrency) and returns one BatchResult per item, in input order. A failing item never stops the others.

string[] inputs = { "jane.doe@example.com", "john@mailinator.com", "contact@veille.io" };
var results = await client.BatchAsync(inputs, (value, ct) =>
    client.IntelligenceEmailAsync(new IntelligenceEmailParams { Query = value }, cancellationToken: ct), concurrency: 5);
foreach (var result in results)
{
    if (result.Ok)
    {
        Console.WriteLine(result.Value!.Json);
    }
    else
    {
        Console.Error.WriteLine($"{inputs[result.Index]}: {result.Error!.Message}");
    }
}
Constant Default Description
VeilleClient.DefaultConcurrency 10 Tasks run at the same time by batch
VeilleClient.DefaultTimeout TimeSpan.FromSeconds(120) Request timeout
VeilleClient.MaxRetries 3 Retry attempts after a network error, a 408/5xx or a rate limit
VeilleClient.RetryBackoffFactor 1.5 Exponential backoff multiplier
VeilleClient.DefaultRetryDelay TimeSpan.FromSeconds(1) Delay before the first retry

Configuration

using var client = new VeilleClient(new VeilleClientOptions
{
    ApiKey = Environment.GetEnvironmentVariable("VEILLE_API_KEY"),
    Timeout = TimeSpan.FromSeconds(60), // default 120 s
    HttpClient = myHttpClient,           // optional, you keep ownership
});

Endpoints

11 methods, generated from the OpenAPI document.

Method HTTP Description
IntelligenceDomainAsync GET /v1/intelligence/domain Check any domain instantly. Detects disposable email providers, public webmail, relay services, and education domains. Returns DNS health w…
IntelligenceEmailAsync GET /v1/intelligence/email Validate any email address in a single call. Detects disposable and temporary inboxes, identifies role accounts, public webmail, relay serv…
IntelligenceEmailqAsync GET /v1/intelligence/emailq Deep email deliverability verification. Performs full Email Validation plus SMTP inbox check, catch-all detection, and returns a qualificat…
IntelligenceIpAsync GET /v1/intelligence/ip Assess the reputation of any IP address. Detects VPNs, proxies, Tor exit nodes, datacenter hosting, abusive traffic, and bots. Returns geol…
IntelligencePhoneAsync GET /v1/intelligence/phone Validate any phone number in E.164 format. Detects disposable and virtual numbers, identifies carrier and line type (mobile/fixed/VoIP), re…
JobsAsync GET /v1/jobs/{id} Poll the status, progress (0–100) and result of a job started with is_async=true. Polling is free. Poll until status is terminal: Completed…
StatsAsync GET /v1/stats Infrastructure health for an engine or endpoint over the last hour. Not scoped to your account or tenant. Enabled per account: HTTP 403 mea…
UsageAsync GET /v1/usage Retrieve real-time usage statistics and credit balance for your Veille account.
VatAsync GET /v1/vat Validate a European VAT number against the VIES database. Returns company name, registered address, and validity status for any EU member s…
VatIbanAsync GET /v1/vat/iban Validate any IBAN and retrieve associated bank details. Returns the BIC/SWIFT code, bank name, country, BBAN structural breakdown, and SEPA…
VatRatesAsync GET /v1/vat/rates Get current ECB exchange rates for any supported base currency. Optionally filter to specific target currencies. Updated daily from the Eur…

License

MIT — see LICENSE.

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.
  • net8.0

    • No dependencies.

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 0 11/6/2026