The Telnyx API V2 uses API Keys to authenticate requests. You can view and manage your API Keys in the Auth section of your Mission Control portal . For information regarding API V1 Authentication please refer to here.
Your API Keys carry many privileges, so be sure to keep them secure! Do not share your secret API Keys in publicly accessible areas such as GitHub, client-side code, and so forth.
To use your API Key, assign it in your SDK as shown in this quickstart guide section. Using our RESTful API, you can also make requests by passing the API Key in the
Authorization: Bearer YOUR_API_KEY.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail. Below is an example of a cURL authenticated request:
curl -X GET \ --header "Authorization: Bearer YOUR_API_KEY" \ --globoff "https://api.telnyx.com/v2/messaging_profiles?page[size]=10"
Note: After pasting the above content, Kindly check and remove any new line added