Most of Voximplant HTTP Management API calls require authentication and authorization that connects API calls to your account. As there are multiple ways to authenticate and authorizes, API keys and Service accounts are the main ones. Learn how to use them with our HTTP Management API.
API Keys (deprecated)
Formally, use of API keys is deprecated since there is a new advanced functionality – Service accounts. However, it still works perfectly especially if you are the only person who has access to a Voximplant account.
Go to the API Keys section of the Control panel where you can obtaion your account_id and api_key. Then just substitute them in a request to the HTTP Management API, e.g.:
The request will be processed with maximum permissions.
A service account is a way to grant access to the Voximplant HTTP Management API on behalf of your developer account. You can manage the permissions of each service account by assigning one or more roles to it. If a service account has no assigned roles, it has access to the basic HTTP Management API methods only. Please see this article for details.
Go to the Service accounts section and click Add in the upper right corner. In the dialogue opened, click Add role and specify as many roles as you need. For example, if you want to enable this new account to just start cloud scenarios, add the Scenarios role. Put a short description (if needed), click Generate key, and specify where to save a private key.
Since we don't store the keys, save it securely on your side.
From now on, you should substitute this token in every HTTP request to the Voximplant HTTP Management API, e.g.: