What is a Twilio API key?
API keys are one way to authenticate to Twilio’s API services. There are two types of API key: Standard and Main.
Standard API keys give you access to all the functionality in Twilio’s API except for managing API keys themselves, and configuring Accounts and Subaccounts.
Main API keys have the same access as standard keys, but can also be used to manage API keys, and configure Accounts and Subaccounts. Main keys give you the same level of access you get when you use your Account credentials.
Where is my API key?
You can find and create API keys on the Auth tokens & API keys page, Account > API keys & tokens.
Left Navigation | Top Navigation |
How can I create API keys?
You can create API keys from the Twilio Console by following these steps:
- Navigate to Auth tokens & API keys page.
- Click the Create API Key button (top right).
- Enter a friendly name for your API key.
- Select the key type —Standard or Main.
- Click the Create API Key button.
Once the API key has been created, you’ll be presented with the key and a secret. This secret serves as the key’s password, much as your account’s Auth Token serves as the password for your Account SID. Please take note of the secret and ensure that you save it securely, as it is only shown once and can’t be viewed later.
You can also create standard API Keys using the Twilio CLI, SDK, and API as shown in the Twilio documentation.
How can I delete API keys?
You can delete API keys from the Twilio Console by following these steps:
- Navigate to Auth tokens & API keys page.
- Click the API key you wish to delete.
- Click Delete this API key near the bottom of the page.
- Click the Delete this API key button from the pop-up which appears.
You can also delete API Keys using the Twilio CLI, SDK, and API as shown in the Twilio documentation.