Authorization request header:
REST API request
Store the key in a server-side environment variable and reference it from the HTTP client:SDK authentication
Current server-side SDKs readTELNYX_API_KEY from the environment or accept it when constructing a client. Use the generated SDK guides for the current constructor and service method:
Credential lifecycle
- Create separate keys for development, staging, and production.
- Store keys in a secret manager or protected environment configuration.
- For a key with an expiration date, deploy a replacement before it expires.
- Create a replacement key before rotating an active integration.
- Deploy the replacement and confirm a read-only request succeeds.
- Revoke the old key from API Keys in Mission Control Portal.
- Revoke any key exposed in source control, logs, client code, or chat immediately.
Product-specific authentication
Do not reuse the REST Bearer pattern where a product defines another protocol:- Cloud Storage S3 operations: Use the S3-compatible credentials and AWS Signature Version 4 described by Cloud Storage API endpoints.
- WebRTC clients: Mint short-lived client tokens on a trusted server; do not expose a Telnyx API key to the client.
- WebSocket APIs: Follow the authentication message or connection fields documented by that specific WebSocket API.
- Webhook deliveries: When a product documents Telnyx Ed25519 signing, verify the signature with the account public key. Follow another validation scheme when the selected product defines one. See Webhook fundamentals.