Skip to main content

API User Migration

This guide provides an overview of how to migrate from Bandwidth's legacy API Users to the newer API Credentials system. API Credentials offer enhanced security and flexibility for authenticating and authorizing API requests.

Migrating from API Users to API Credentials

To migrate from API Users to API Credentials, follow these steps:

  1. Create New API Credentials: Generate new API credentials in the Bandwidth App or via the API.
  2. Update Your Application: Modify your application's code to use the new API credentials for authentication instead of the legacy API User credentials.
  3. Test Your Integration: Ensure that your application functions correctly with the new API credentials.
  4. Deactivate Legacy API Users: Once you have confirmed that everything is working as expected, you can deactivate your legacy API Users.

Creating New API Credentials

You can create and manage new API credentials via the Bandwidth App or the API. See our API Credentials Management guide for detailed instructions.

Updating Your Application Code

When updating your application code, replace any instances of the legacy API User Basic Authentication with new API Credentials handling the OAuth 2.0 Client Credentials flow.

warning

Security Notice: Always retrieve tokens from a server running in a secure environment and provide them securely to clients. Client-side JavaScript does not have a mechanism for hiding credentials, so DO NOT place credentials directly in your client-side code.

Bandwidth accepts no responsibility for lost account credentials or any resulting network traffic, fraud, or unauthorized account access resulting from failing to manage account credentials securely.

Using Bandwidth SDKs

Newer versions of the Bandwidth SDKs handle the OAuth 2.0 Client Credentials flow for you. When initializing the SDK, provide your Client ID and Client Secret, and the SDK will manage token retrieval and refreshing automatically.

Upgrade to the latest version of the Bandwidth SDK for your programming language and refer to the SDK documentation for specific instructions on how to use API Credentials.

Testing Your Integration

After updating your application to use the new API credentials, thoroughly test all functionalities to ensure that everything works as expected.

Deactivating Legacy API Users

Once you have confirmed that your application is functioning correctly with the new API credentials, you can proceed to deactivate your legacy API Users to enhance security.

  1. Log in to the Bandwidth App.
  2. Navigate to the Users page.
  3. Select the legacy API User you wish to deactivate.
  4. Click on the "Deactivated" option.
  5. Save your changes.

Congratulations! You have successfully migrated from API Users to API Credentials. For more information on our new credentials, refer to our API Credentials Management guide.