Need to access token and from the Data Action

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
}

Hi WetkarS,

We intentionally do not provide access to the auth response since there could be a separation between the people who develop data actions and the people who control the credentials.

A couple of options come to mind:
You should be able to see the raw response body by opening the "Execute" step in the data action's test mode.
You could request access credentials to the middleware, for the purpose of testing in postman.

--Jason

Just an hour ago, I came across the same & problem solved.

Thanks Jason !!!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.