Got to know that oAuth is not supported in AEMaaCS. So I was following this article to generate access token for server side APIs https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/developing/generating-access-tokens-for-server-side-apis.html?lang=en#After ...