Credentials
This guide will cover the credentials for interacting with Bandwidth's APIs.
Basic Authorization
All of Bandwidth's APIs are protected with Basic Authorization over HTTPS. Basic Authorization requires the user's username:password
pair to be encoded with base64 as part of the Authorization
HTTP header.
⚠️ Usernames and Passwords are case sensitive!
Credentials Snapshot
Credential Name | Description | Example |
---|---|---|
username | Your API user's username | jdoe |
password | Your API user's password | correct-horse-battery-staple |
accountId | Your unique account id. The accountId is used as part of the url to make API requests, e.g. https://dashboard.bandwidth.com/api/accounts/{accountId}/ | 920012 |
Creating an API User
Bandwidth provides a 'user-based' permission and authentication scheme. It's recommended to create a new user with ONLY API access and the necessary roles on your account. The API user can be leveraged to access all of Bandwidth's APIs.
By default, users with no assigned role(s) will have the ability to perform GET requests against the following endpoints:
- Orders:
https://dashboard.bandwidth.com/api/accounts/{accountId}/orders
- Order Details:
https://dashboard.bandwidth.com/api/accounts/{accountId}/orders/{orderId}
- SIP Peer Details:
https://dashboard.bandwidth.com/api/accounts/{accountId}/sites/{siteId}/sippeers
- Admin Edge Settings:
https://dashboard.bandwidth.com/api/accounts/{accountId}/products/edgemanagement/settings
- Subscriptions API:
https://dashboard.bandwidth.com/api/accounts/{accountId}/subscriptions
API User Credentials
⚠️ The API user is meant to be separate from your Dashboard user and should not be used to access the Dashboard. Further, your Dashboard user should not be used to access Bandwidth's APIs.
Unlike other user types, an API user is not required to update their password.