OAuth Tutorial
Prerequisites
Requesting a service access token
1
Header
Value
Parameter
Description
curl -i -X POST 'https://api.emporix.io/oauth/token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'client_id={{client_id}}' \
-d 'client_secret={{client_secret}}' \
-d 'grant_type=client_credentials' \
-d 'scope=category.category_manage category.category_publish category.category_read_unpublished category.category_unpublish \2
Field
Description
{
"access_token": "vkFuQ6oTwj8_Ye4eiRSsqMeqLYNeQRJi",
"token_type": "Bearer",
"expires_in": 14399,
"session_idle_time": 120,
"refresh_token": "",
"refresh_token_expires_in": 0,
"scope": "scope=category.category_manage category.category_publish category.category_read_unpublished category.category_unpublish tenant=yourtenant"
}Authorization: Bearer <access_token>Last updated
Was this helpful?

