Steps to Generate Access Token for Authoring API Endpoint in XM Cloud

Hello everyone, In this blog we will understand, how to get access token which is must for interacting with Authoring API endpoint. As we all know, to work with preview endpoint in XM Cloud, we required sc_apikey which we can get from Sitecore. But we cannot use the same when working with Authoring API endpoint. We will require an access token for the same. So follow below steps to implement the same. Step 1 : Login to you XM Cloud Instance and click on XM Cloud Deploy APP. Step 2 : Click on Credentials in left side panel. Step 3 : Click on Create Credentials.A popup will come up. Fill the details as shown in below figure. Step 4 : Another popup will come up which will show you generated client id and client secret.Copy you client secret as will not be accessible once popup us closed. Step 5 : Now we are ready with client id and client secret. It's time to get the access token.Open Powershell in administrator mode and run below command.The placeholder {0} represent the clie...