Unable to access Session API
I am not able to access the Session API from Swagger, it showing me 401 as response code. We have Aperture as external system we are not able to fetch the records from Session but able to get the other metadata information.
I checked in Progress data direct response code for Session are 401 there as well and even in Swagger I am not able get the 200 response code. But for other get API s I am getting 200 response code. Any idea what might be the problem for this?
Best Answer
-
The audit (event and session) reports are restricted to users with certain capabilities:
The 401 / unauthorized error might be down the fact that user linked to the API key you're using does not have the right permissions
2
Answers
-
@Henry Simms Thank you for your response !
As the access rights changed I am now able to access the sessions and EVENTS but I am able to get only 100000 records for sessions and I can see only till feb records. Is it because some limitation of the row count has been set somewhere?
also I see in progress data direct a new thing is added but there getting the error
0 -
Session and event data is stored for a period of time defined in your audit retention period (in the Manage Environments page), default 90 days:
My /sessions API response contains close to 20,000 session objects. Really these should be paged.
The /metrics API also has API key and user permissions capabilities:
0 -
we have also this setting, I wonder why I am not getting latest? 90 days means it should be 90 days back days from today till last 3 months. But I am getting till feb data
0 -
It looks like the Sessions and Events endpoints have an internally configured maximum number of records to return, which is set to 100k. This would be in place to prevent the API response from getting too large, but paging of the response would seem to be a better solution. I think it would be good to raise on the ideas board if it's going to be useful for you to get a more complete set of sessions data.
0