Skip to content

GetToken

Generates an authentication token to authorise users. Please see GetTokenFromUserInfo or GetTokenFromProvider methods if you need to generate a token based on user information or an external identity provider.

Info

The generated token is only used for login purposes and cannot be used as a session token. You may pass this token to the auth parameter to authenticate users and system will issue a new session token for the user.

Required Scope

login

Parameters

Parameter Name Description
apiKey A unique key used to authenticate and authorise the calling system.
logonId User’s logon Id.
logonProvider The authentication provider used for user login (e.g., 'Organization' for Emakin's default login system).

Example Call

1
2
3
4
5
6
7
POST https://mydomain.emakin.com/rest/v1/getToken

{
     "apiKey": "xxxx",
     "logonId": "[email protected]",
     "logonProvider": "Organization"
}
1
2
3
4
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

"41AA3CE3CAFB..............BF8114"