Hi Team,
I need to pick token from iparams json to request json but it shows that the token cannot be picked.
requests.json
{
"getFsuAccount":{
"schema": {
"protocol": "https",
"method": "GET",
"host": "<%= iparam.freshsuccess_url %>",
"path": "/api/v2/accounts/<%= context.account_id %>",
"headers": {
"Content-Type": "application/json"
},
"query": {
"api_key": "<%= iparam.freshsuccess_token %>"
}
}
}
}
iparams.json
"freshsuccess_token": {
"display_name": "Freshsuccess API Key",
"description": "Please enter your Freshsuccess API Key",
"type": "api_key",
"secure": true,
"required": true,
"type_attributes": {
"product": "Freshsuccess"
}
},
CURL from postman:
curl --location ‘https://api-eu.freshsuccess.com/api/v2/accounts/freshservice - 202546?api_key=us-****’
Can someone help?
Regards,
Deiviya