This library allows you to integrate features from Vonage's APIs into your application.
Full documentation and guides: vonage.github.io/vonage-dotnet-sdk
It requires a Vonage account first.
dotnet add package Vonage- Upcoming v9.0.0.
- Upgrading to v8.0.0.
- Upgrading to v7.0.0.
- Upgrading to v6.0.0.
- Upgrading from OpenTok for Video API.
The SDK targets netstandard2.0 and is compatible with .NET 6, 7, and 8.
using Vonage;
using Vonage.Request;
using Vonage.VerifyV2.StartVerification;
using Vonage.VerifyV2.StartVerification.Sms;
var client = new VonageClient(
Credentials.FromAppIdAndPrivateKeyPath("YOUR_APP_ID", "private.key"));
var result = await client.VerifyV2Client.StartVerificationAsync(
StartVerificationRequest.Build()
.WithBrand("MyApp")
.WithWorkflow(SmsWorkflow.Parse("447700900000"))
.Create());
result.Match(
successOperation: response => Console.WriteLine($"Verification started: {response.RequestId}"),
failureOperation: failure => Console.WriteLine($"Error: {failure.GetFailureMessage()}"));For authentication options, DI registration, configuration reference, and logging, see Getting Started.
The following is a list of Vonage APIs and whether the Vonage .NET SDK provides support for them:
| API | API Release Status | Supported? |
|---|---|---|
| Account API | General Availability | ✅ |
| Alerts API | General Availability | ✅ |
| Application API | General Availability | ✅ |
| Conversations API | General Availability | ✅ |
| Messages API | General Availability | ✅ |
| Number Insight API | General Availability | ✅ |
| Number Insight V2 API | General Availability | ✅ |
| Number Management API | General Availability | ✅ |
| Number Verification API | General Availability | ✅ |
| Pricing API | General Availability | ✅ |
| Redact API | Developer Preview | ✅ |
| Reports API | General Availability | ✅ |
| SimSwap API | General Availability | ✅ |
| SMS API | General Availability | ✅ |
| SubAccounts API | General Availability | ✅ |
| Users API | General Availability | ✅ |
| Verify API | General Availability | ✅ |
| Verify V2 API | General Availability | ✅ |
| Video API | General Availability | ✅ |
| Voice API | General Availability | ✅ |
Pick your preferred IDE:
- Visual Studio (Community is fine)
- Visual Studio Code
- Jetbrains Rider
- Get the latest code either by cloning the repository or downloading a snapshot of the source.
- Open
Vonage.sln - Build — NuGet dependencies should be brought down automatically.
- Run all tests to verify everything's fine.
Pull requests are welcome!
To publish a new version, use the release script:
./release.sh <version> [--dry-run]For example:
# Preview the release without making changes
./release.sh 8.30.0 --dry-run
# Perform the release
./release.sh 8.30.0The script will:
- Update the version in
Vonage/Vonage.csproj - Commit and create a git tag
- Generate the changelog using git-cliff
- Push to remote
- Create a GitHub release
Pre-release versions are also supported (e.g., 8.30.0-beta).
This library is released under the MIT License.