soenneker/soenneker.telnyx.openapiclient

A Telnyx .NET client generated from the Telnyx OpenAPI schema, updated daily

C#

0

973 commits

updated Oct 3, 2026

See the code

README

Soenneker.Telnyx.OpenApiClient

A Kiota-generated .NET client for Telnyx's REST API, covering messaging, calling, numbers, networking, identity, billing, AI, and other Telnyx resources.

Installation

dotnet add package Soenneker.Telnyx.OpenApiClient

Usage

using System.Net.Http.Headers;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Telnyx.OpenApiClient;
using Soenneker.Telnyx.OpenApiClient.Models;

var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", telnyxApiKey);

var authentication = new AnonymousAuthenticationProvider();
var adapter = new HttpClientRequestAdapter(authentication, httpClient: httpClient);
var telnyx = new TelnyxOpenApiClient(adapter);

ListMessagingProfilesResponse? response = await telnyx.Messaging_profiles.GetAsync(
    cancellationToken: cancellationToken);

Keep the HttpClient, request adapter, and TelnyxOpenApiClient for reuse instead of constructing them per request. The client defaults to https://api.telnyx.com/v2.

The generated surface follows Telnyx's OpenAPI operation and schema names, including underscore-separated members such as Messaging_profiles. Regeneration can add or rename generated types as the upstream schema changes.

Many Telnyx operations create billable messages, calls, numbers, or other resources. Review the generated request type and Telnyx operation semantics before invoking mutation methods such as PostAsync, PatchAsync, or DeleteAsync.

csharp
dotnet
openapi
openapiclient
schema
sms
telephony
telnyx
telnyxopenapiclient
util
voice

soenneker/soenneker.telnyx.openapiclient

A Telnyx .NET client generated from the Telnyx OpenAPI schema, updated daily

C#

0

973 commits

updated Oct 3, 2026

See the code

README

Soenneker.Telnyx.OpenApiClient

A Kiota-generated .NET client for Telnyx's REST API, covering messaging, calling, numbers, networking, identity, billing, AI, and other Telnyx resources.

Installation

dotnet add package Soenneker.Telnyx.OpenApiClient

Usage

using System.Net.Http.Headers;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Telnyx.OpenApiClient;
using Soenneker.Telnyx.OpenApiClient.Models;

var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", telnyxApiKey);

var authentication = new AnonymousAuthenticationProvider();
var adapter = new HttpClientRequestAdapter(authentication, httpClient: httpClient);
var telnyx = new TelnyxOpenApiClient(adapter);

ListMessagingProfilesResponse? response = await telnyx.Messaging_profiles.GetAsync(
    cancellationToken: cancellationToken);

Keep the HttpClient, request adapter, and TelnyxOpenApiClient for reuse instead of constructing them per request. The client defaults to https://api.telnyx.com/v2.

The generated surface follows Telnyx's OpenAPI operation and schema names, including underscore-separated members such as Messaging_profiles. Regeneration can add or rename generated types as the upstream schema changes.

Many Telnyx operations create billable messages, calls, numbers, or other resources. Review the generated request type and Telnyx operation semantics before invoking mutation methods such as PostAsync, PatchAsync, or DeleteAsync.

csharp
dotnet
openapi
openapiclient
schema
sms
telephony
telnyx
telnyxopenapiclient
util
voice

Languages

C#

100.0%