Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Fresh Service Connection Details

Saviynt_Savvy
Regular Contributor
Regular Contributor

What are the values that should be set for the highlighted parameters in the FreshService Connection below and where from these values get?
I have referred the Community based Connector guide where they mention an API Key we should use.
https://docs-be.saviyntcloud.com/bundle/EIC-Connectors/page/Content/Resources/Attachments/Freshservi...


Where do I put the API key in the connection below and what the Username, password and Fresh_Service_Token value means exactly.
Connection JSON:
===================
{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "https://hostname.domain_name/api/v2/tickets",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"properties": {
"userName": "<USERNAME>",
"password": "<PASSWORD>"
},
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic XXXXXXXX",
"testConnectionParams": {
"http": {
"url": "https://<hostname.domain_name>/api/v2/tickets",
"httpMethod": "GET",
"requestBody": "",
"httpParams": {},
"httpHeaders": {
"contentType": "application/json",
"Authorization": "Basic <FreshService_Token_Value>"
},
"httpContentType": "application/json"
}
},
"successResponse": [],
"successResponsePath": "responseText",
"errors": [
"fail",
"error"
],
"errorPath": "responseText"
},
"apiRateLimitConfig": {
"retryAfterCalls": 100,
"retryWaitSeconds": 60
}
}
}

5 REPLIES 5

naveenss
All-Star
All-Star

Hi @Saviynt_Savvy ,

As per the documentation, you need to base64 encode the API key and put it in the accessToken parameter in the ConnectionJSON.

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

Hi @naveenss ,
Thanks for the reply.
What values should I use in place of the other highlighted parameters like <username> <password> <Fresh_Service_Token_Value>

Hi @Saviynt_Savvy  ideally for a basic auth type these values doesnt matter as the accesstoken remains constant. 

please let me know if you are facing any issues. 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

Manu269
All-Star
All-Star

@Saviynt_Savvy This is a sample I used :

{
"authentications": {
"acctAuth": {
"authType": "Basic",
"httpMethod": "POST",
"httpParams": {

},
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"properties": {
"userName": "<Added username>",
"password": "X"
},
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic <Generate base64 and add here>",
"apiRateLimitConfig": {
"retryAfterCalls": 100,
"retryWaitSeconds": 60
}
}
}
}
Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

rushikeshvartak
All-Star
All-Star
  • userName & password will be provided by client.
  • accessToken XXXX - will be Base64  a Base-64 encoded string into the top space of a web page like https://www.base64decode.org/, and click ENCODE.

Refer : https://docs.saviyntcloud.com/bundle/REST-v24x/page/Content/Examples-for-JSON-Construction.htm 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.