Soenneker.Telnyx.OpenApiClient
4.0.317
Prefix Reserved
dotnet add package Soenneker.Telnyx.OpenApiClient --version 4.0.317
NuGet\Install-Package Soenneker.Telnyx.OpenApiClient -Version 4.0.317
<PackageReference Include="Soenneker.Telnyx.OpenApiClient" Version="4.0.317" />
<PackageVersion Include="Soenneker.Telnyx.OpenApiClient" Version="4.0.317" />
<PackageReference Include="Soenneker.Telnyx.OpenApiClient" />
paket add Soenneker.Telnyx.OpenApiClient --version 4.0.317
#r "nuget: Soenneker.Telnyx.OpenApiClient, 4.0.317"
#:package Soenneker.Telnyx.OpenApiClient@4.0.317
#addin nuget:?package=Soenneker.Telnyx.OpenApiClient&version=4.0.317
#tool nuget:?package=Soenneker.Telnyx.OpenApiClient&version=4.0.317
Soenneker.Telnyx.OpenApiClient
A Telnyx .NET client generated from the Telnyx OpenAPI schema, updated daily
Installation
dotnet add package Soenneker.Telnyx.OpenApiClient
Soenneker.Telnyx.OpenApiClient
Overview
Soenneker.Telnyx.OpenApiClient is a .NET SDK generated using Kiota that provides a client interface for interacting with the Telnyx OpenAPI. The client is automatically updated daily from the official Telnyx OpenAPI specification.
Installation
Install the package via NuGet:
dotnet add package Soenneker.Telnyx.OpenApiClient
Setup
To use this SDK, you'll need a Telnyx API Key. You can obtain one from the Telnyx Portal.
Creating a Client Instance
var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "your_access_token_here");
// Use a null authentication provider since we're setting headers manually
var requestAdapter = new HttpClientRequestAdapter(null, httpClient: httpClient);
// Create a Telnyx API client instance
var client = new TelnyxOpenApiClient(requestAdapter);
Making a Call
To initiate a call using Telnyx, you can use the Calls API:
using System.Threading.Tasks;
public async Task MakeCall()
{
var callRequest = new {
connection_id = "your_connection_id",
to = "+15558675309", // The destination phone number
from = "+15551234567" // Your Telnyx phone number
};
var response = await client.Calls.PostAsync(callRequest);
if (response != null)
{
Console.WriteLine("Call initiated successfully!");
}
}
Sending a Message
var messageRequest = new {
from = "+15551234567", // Your Telnyx number
to = "+15558675309", // Destination number
text = "Hello from Telnyx!"
};
var response = await client.Messages.PostAsync(messageRequest);
Console.WriteLine("Message sent successfully!");
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 1.22.0)
- Microsoft.Kiota.Serialization.Form (>= 1.22.0)
- Microsoft.Kiota.Serialization.Json (>= 1.22.0)
- Microsoft.Kiota.Serialization.Multipart (>= 1.22.0)
- Microsoft.Kiota.Serialization.Text (>= 1.22.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Telnyx.OpenApiClient:
| Package | Downloads |
|---|---|
|
Soenneker.Telnyx.ClientUtil
An async thread-safe singleton for the Telnyx OpenApiClient |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.317 | 59 | 3/13/2026 |
| 4.0.316 | 37 | 3/13/2026 |
| 4.0.315 | 28 | 3/13/2026 |
| 4.0.314 | 43 | 3/12/2026 |
| 4.0.309 | 201 | 3/11/2026 |
| 4.0.308 | 130 | 3/10/2026 |
| 4.0.307 | 173 | 3/9/2026 |
| 4.0.305 | 82 | 3/9/2026 |
| 4.0.304 | 124 | 3/9/2026 |
| 4.0.303 | 164 | 3/6/2026 |
| 4.0.302 | 90 | 3/5/2026 |
| 4.0.301 | 226 | 3/4/2026 |
| 4.0.300 | 82 | 3/4/2026 |
| 4.0.299 | 162 | 3/3/2026 |
| 4.0.298 | 94 | 3/3/2026 |
| 4.0.297 | 78 | 3/3/2026 |
| 4.0.296 | 105 | 3/3/2026 |
| 4.0.295 | 81 | 3/3/2026 |
| 4.0.294 | 79 | 3/3/2026 |
| 4.0.293 | 95 | 3/2/2026 |
Automated update