Rate this page:

How to use API keys & Service accounts

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 authorize, 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.:

StartScenarios request

StartScenarios request

The request will be processed with maximum permissions.

Service Accounts

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.

Next, form a JWT using RS256. The required fields are:

  • kid – key_id to be specified in the header section

  • iat – start date, it must be a Numeric date value (UNIX timestamp)

  • iss – account_id

  • exp – end date, up to iat+3600 seconds. It must be a Numeric date value (UNIX timestamp)

Choose wisely

You can create tokens manually, but for a better experience it is recommended to use our API Client Libraries.

From now on, you should substitute this token in every HTTP request to the Voximplant HTTP Management API, e.g.:

Using token in the request

Using token in the request