Getting IDM Token

VPaaS Platform Token

This readme will provide you with all the needed information to generate a User Token (aka Voice Platform Token) by yourself.

As we are working with the production environment, currently generating a static token for an anonymous user is not supported.

Why are we doing this?

In order to call any Voice API endpoint you need to provide a User Token within the HTTP Header Field Authorizationin the below format Authorization: Bearer THE_REALLY_LONG_ENCRYPTED_USER_TOKEN.

Note: You can also find the endpoint in the swagger documentation under API tab of

Generate Platform Token

There are a couple of steps to generate a token:

  • Get an IDM Account
  • Trigger the login
  • Exchange the auth code for the VPaaS (Voice Platform as a Service) Token
  • Use the token
  • Refresh the token (Optional)

0. IDM Account

An IDM (Identity Management system for end users of speakers, etc.) Account is needed to login to the platform. This account can be also created for free at the official registration page

One must provide a valid mobile phone number to verify the registration. Everything else is free of charge.

1. Trigger the login

You can trigger the login by calling the following endpoint:


The curl will look like the following:

curl -X GET "" \
-H  "apikey: THE_API_KEY"

Note: CompApp is usually used in the placeholder THE_SCOPE

you will get a redirect url which should be opened in the browser e.g.:

Redirect to

Please copy and paste this url and open it in your browser of choice. After you login, you will automatically be redirected to a similar url schema as following:

smarthubplatform://login?authCode=<needed for next step>

2 Exchange the auth code for the VPaaS Platform Token

You need to copy and paste the content of the authCode from the previous step and call the user/api/v2/exchange-auth-code endpoint

A curl would look like:

curl -X POST "" \
      -H  "apikey: THE_API_KEY" \
      -H  "Content-Type: application/json" \
      -d "{  \"authCode\": \"THE_AUTH_CODE\",  \"clientId\": \"THE_CLIENT_ID\"}"

The response of this request should be the VPaaS Platform Token:

   "accessToken": "eyJhbGciOiJ..........nV3POfgARffP_fs",
   "refreshToken": "XXXXX",
   "expiresIn ": 14399,
   "expiresAt ": "2020 - 11 - 25 T16: 43: 11.219846 Z ",
   "scope ": "XXXX"

3 Use the token

To check if the token is valid you can call the user info endpoint:


curl "" \
     -H 'apikey: THE_API_KEY' \
     -H 'Authorization: Bearer eyJhbGciOiJ..........nV3POfgARffP_fs'



4 Refresh the token (Optional)

To refresh the token simple call the /user/api/v2/refresh-platform-token endpoint


curl -X POST "" \
      -H 'apikey: THE_API_KEY' \
      -H  "Content-Type: application/json" \
      -d "{  \"clientId\": \"THE_CLIENT_ID\",  \"refreshToken\": \"RTSVH2:eyJhb.......OfgARffP_fs\"}"


  "accessToken": "eyJhbGc.......HuRxVM",
  "refreshToken": "RTSV........3Bao",
  "expiresIn": 14399,
  "expiresAt": "2020-11-25T17:17:09.260099Z",
  "scope": "THE_SCOPE"