Hi, Christer
Thanks for the help and I simply replace the paSession Cookie and it works! It returned an HTML response. However, after saving it, the Chrome or any other Browser wasn't able to render them correctly. Do you have similar problems? Also, I wonder if you have practical applications from pacontent end point? Thank you very much.
------------------------------
mvp morgan
------------------------------
Original Message:
Sent: Thu February 11, 2021 11:35 AM
From: Christer Andersson
Subject: PAW API?
I suspect that it's the same cookies for the /ui/* api as for the /pacontent/* api (which is the one I've been mostly using in my REST client, for the /ui/* api:s I've simply copied all cookies available - I'm using it in a browser - and made sure that the cookie path matches).
For the pacontent my cookies are:

I'm not setting the TM1SessionId_ cookie manually.
For /pacontent/* queries I also have the following header set up:

From which the value is fetched from the ba-sso-csrf cookie (and no, the example doesn't match... =)
The header might no longer be required (think as of PAW 57).
------------------------------
Christer Andersson
Original Message:
Sent: Wed February 10, 2021 05:07 PM
From: mvp morgan
Subject: PAW API?
Thanks for your advice. I have tried to copy cookies from PAW in Chrome but still no luck. Would you mind to give detailed instructions? I tested with putting paSession into cookies as well as putting a separate header from the snapshot.
------------------------------
mvp morgan
Original Message:
Sent: Wed February 10, 2021 01:30 PM
From: Christer Andersson
Subject: PAW API?
Yes, the trick is that you need to be logged on in PAW first (which will do the CAM logon) and then make sure you are emitting PAW:s session cookies in the request as well add the csrf cookie value as the request header 'ba-sso-authenticity'.
It might work without the request header depending on the version.
------------------------------
Christer Andersson
Original Message:
Sent: Tue February 09, 2021 11:26 PM
From: mvp morgan
Subject: PAW API?
Hi, has anyone tried to use this API yet?
I am trying to follow the example but looks like I can't get through the CAM authentication, which I thought it should be similar to TM1 REST API.
I put authorization header in the Get request and always got 401Unauthorized response.
https://ibm.github.io/planninganalyticsapi/#introduction
------------------------------
mvp morgan
------------------------------
#PlanningAnalyticswithWatson