Initialization

Introduction

The initialization is about the retrieval of an access token to get the access to the functions, which allow you to see data of your organization.
The data such as list of users, user trips and user statistics are accessible through getter functions described in the next section.

Make sure you have client_id (e.g. com.myorg.myadmin) and client_secret (long string) at hand.
You can obtain it from your Sygic sales representative or contact us through Contact form

Authentication

In order to retrieve an access token you need to input client_id and client_secret.
The access token is to be used for all the other functions of the backend api, e.g. get-users, etc.
The authentication service needs to be accessed with the header setting:

Content-Type: application/json

Example

POST https://auth.sygic.com/oauth2/token
{
  "client_id": "com.myorg.myadmin",
  "client_secret": "6437gdf34dg3f7dt3",
  "grant_type": "client_credentials"
}