cancel
Showing results for 
Search instead for 
Did you mean: 

How to call the Public Api in Rest get

Pretty
New Contributor III

In Rest Get Snap, we need to call this API [GET /api/1/rest/public/runtime/snaplogic]
,there is a notification here that authentication is required, but where can I get this authentication for this API

I got the API from this Docs
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438155/Pipeline+Monitoring+API

image
Please help how to get all this information in brief

10 REPLIES 10

bojanvelevski
Valued Contributor

Hi @Pretty,

There’s two ways of adding authorization to your REST call. One is to create a REST Basic Auth Account with your SnapLogic user and password as credentials, and the other is to add your authorization code as a header.

Authorization code will again be a Base64 encoded version of your SL credentials. Use the following expression in a mapper:

Base64.encode('username@snaplogic.com:password')

And add the result code in a header like below:

image

Regards,
Bojan

Pretty
New Contributor III

@bojanvelevski
I tried with REST Basic Auth Account
Showing Error like

image

and added authorization code as a header
image

Pretty
New Contributor III

@bojanvelevski
After passing org facing same error
image