Service Access Token
Was this helpful?
Was this helpful?
Sends an authentication request and returns a service access token.
Note: We do not support refresh tokens for service access tokens. In case your service access token expires, you need to send a new authentication request.
Grant type parameter is always client_credentials
.
POST /oauth/token HTTP/1.1
Host: api.emporix.io
Content-Type: application/json
Accept: */*
Content-Length: 125
{
"client_id": "{client_id}",
"client_secret": "{client_secret}",
"grant_type": "client_credentials",
"scope": "tenant={tenant} ..."
}
The request was successful. A service access token is returned.
{
"refresh_token_expires_in": 0,
"refresh_token": "",
"session_idle_time": 120,
"token_type": "Bearer",
"access_token": "vkFuQ6oTwj8_Ye4eiRSsqMeqLYNeQRJi",
"expires_in": 14399,
"scope": "tenant={tenant} ..."
}