v1

latestOpenAPI 3.1.02026-07-2414238909.1 KB

Get authenticated using your application credentials

Firstly, you should get your application credentials (application-id, application-secret) from the [Routee…

post/oauth/token?grant_type=client_credentials

Headers

Authorizationstring
Content-Typestring

Request body

grant_typestring required

This value is always: client_credentials

scopestring

The body can also contain a scope parameter in order to limit the permissions of the access token. For example if an application only sends SMS it can request only the SMS scope. By default if the scope parameter is omitted then the token receives all the allowed scopes of the application. POSSIBLE VALUES (separated by space): contact account report sms voice lookup number_validator 2step viber sender_info virtual_number number_pool

Response

200

access_tokenstring
token_typestring
expires_ininteger
scopestring
permissionsstring[]

Example response

{
  "access_token": "346f0dd4-c7bb-4f84-924e-47459c7d11c6",
  "token_type": "bearer",
  "expires_in": 3599,
  "scope": "voice lookup contact report 2step sms account viber number_validator sender_info virtual_number number_pool",
  "permissions": [
    "MT_ROLE_LOOKUP"
  ]
}
All 142 operations