Skip to main content

Voice SDK Authentication via JWTs

Prerequisites

  • An active telephony credential

Create a Token

The following API request will generate a JWT.

POST /v2/telephony_credentials/:id/token HTTP/1.1
Host: api.telnyx.com
Authorization: Bearer XXX

This JWT is valid until:

  • 24 hours after its creation or
  • the parent telephony credential is expired

whichever comes first

SDK Authentication

SDKs are authenticated with the JWT.

Limits

Currently, there exists

  • No limit on count of tokens on a telephony credential,
  • Nor any limit on the aggregate count of tokens on a single account.

Additional Resources