Skip to main content

Choose an SDK

TypeScript and Node.js

npm package, setup, API usage, pagination, and error handling.

Python

Sync and async clients, typed models, pagination, and error handling.

Go

Go modules, request options, pagination, and error handling.

Java

Gradle and Maven setup, sync and async clients, and typed models.

Ruby

Bundler setup, typed models, pagination, and error handling.

PHP

Composer setup, named parameters, pagination, and error handling.
The Telnyx CLI provides command-line access to the same API for terminal workflows and automation.

SDK or direct HTTP

Select the interface that matches the workload: Every REST endpoint remains available over HTTPS. The API reference provides endpoint schemas and request examples when direct HTTP is the better fit.

Install

Package · Source

Authenticate

Create an API key in the Mission Control Portal, store it outside source control, and expose it to the application as TELNYX_API_KEY. Pass this environment variable when initializing the client; SDKs that support environment-based defaults read the same name.
See Create and manage API keys for key creation, storage, rotation, and revocation.

Make a request

The following TypeScript example initializes the client from TELNYX_API_KEY and creates a call:
Open the language guide above for the equivalent client setup and current method signatures in each SDK.

Generated API coverage

Telnyx generates the server-side SDKs from the public REST API definition. Resource and method names follow the API model, while each library provides language-specific types and conventions. All official server-side SDKs include utilities for ED25519 webhook-signature verification. Use the SDK’s webhook service with the raw request body, the telnyx-signature-ed25519 header, the telnyx-timestamp header, and the public key from the Mission Control Portal. SDK releases can follow API changes at different times. Before adopting a newly released endpoint or field:
  1. Update to the current SDK release.
  2. Check the language guide or repository for the generated method and model.
  3. Use direct HTTP when an API capability is available before the matching SDK release.

Get help

Report SDK-specific defects in the corresponding GitHub repository. For account or API behavior issues, contact Telnyx Support. Include the SDK language, package version, affected resource or method, and a minimal reproduction with credentials removed.