API Keys and How to Use Them

In this article we will explain API keys and how to use them with both API v2 and API v1. See Telnyx guidance and requirements.

To use Telnyx v2 API endpoints, you will need an API key. For our API v1 endpoints, you will need an API Token.

This article will explain how to get your API Key for API v2 or API Token for API v1.

Telnyx uses API Keys or Tokens to authenticate API requests from our customers.

Step by Step guide API v2 Key

Click Create API Key on the top right hand corner to create an API v2 Key.

This key is what you will use as the bearer token in your API requests.

  • You will then be provided with your API v2 Key to copy.

    • NOTE: The API Key will only be visible at the time of creation, so ensure it is securely stored in your application's environment variables.

  • If you lose it, you can always go back to this section again to get it or create a new one.
  • You have the option to set an Expiration date for your key, or temporarily disable any given API Key by just toggling the option.
  • You can also associate up to 10 tags per API Key.

Coming soon:

  • Adding search by tag functionality in the Mission Control Portal
  • Adding developer documentation to access managed API Keys through an API endpoint.

Step by Step guide API v1 Token

  • Click Create API Token.

  • We will ask you to give it a name, you can name it whatever you want.

  • You will see a section on the right-hand side where you can click Copy Token.

  • If you lose it you can always go back to this section again to get it or create a new one.

    • NOTE: The API Token will only be visible at the time of creation, so ensure it is securely stored in your application's environment variables.

In your API request, please include two headers called:

  • x-api-user:
  • x-api-token: when making the API V1 request.

You can find more details on API v1 Tokens in our developer's docs here and our API v2 Key here

Breaking Line

Related articles

Creating Postman Collection from OpenAPIGetting all of Telnyx API V2 on Postman only takes a few short steps, start using the API right away! See Telnyx guidance and requirements.Your Number Lookup GuideThis guide covers how to use the Number Lookup tool in the Telnyx Mission Control Portal to retrieve carrier details… See Telnyx guidance and requirements.Resources on Your AccountQuick links for other useful resources for your Telnyx Mission Control Account. See Telnyx guidance and requirements.2FA / TOTP SetupNew 2FA & TOTP Process Guide for Mission Control Portal: Key info here. See Telnyx guidance and requirements.