Hello Team,
I need to get the access token configured under Integration.
We have a Data action configured to Customer's middleware where we pass the mobile number as the input, and we get the output.
Now the API callout to customer middleware consists of access token and token type which is being passed as header of the API request from Genesys.
I need access to these access token since i need to make an API Callout from POSTMAN to analyze the raw response.
Data Action JSON:
{
"name": "CCDGetRegisteredMobileNumber_Prod - Exported 2023-07-18 @ 14:42",
"integrationType": "custom-rest-actions",
"actionType": "custom",
"config": {
"request": {
"requestUrlTemplate": "https://itgateway.infosys.com/ccdservices/idsnew/v2/api/getRegisteredMobileNumber?MobileNumber=${input.mobileNumber}",
"requestType": "GET",
"headers": {
"Authorization": "${authResponse.token_type} ${authResponse.access_token}"
},
"requestTemplate": "${input.rawRequest}"
},
"response": {
"translationMap": {
"isRegisterd": "$.isRegisterd",
"platinumUser": "$.platinumUser",
"employeeNumber": "$.employeeNumber"
},
"translationMapDefaults": {
"isRegisterd": "",
"platinumUser": "",
"employeeNumber": ""
},
"successTemplate": "{"isRegisterd" : ${isRegisterd},"employeeNumber" : ${employeeNumber},"platinumUser" : ${platinumUser}}"
}
},
"contract": {
"input": {
"inputSchema": {
"title": "InputRequest",
"type": "object",
"properties": {
"mobileNumber": {
"type": "string"
}
},
"additionalProperties": true
}
},
"output": {
"successSchema": {
"title": "OutputResponse",
"type": "object",
"properties": {
"isRegisterd": {
"type": "string"
},
"employeeNumber": {
"type": "string"
},
"platinumUser": {
"type": "string"
}
},
"additionalProperties": true
}
}
},
"secure": false
}