cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
233
Views
0
Helpful
1
Replies

Admin API Pagination not working

edradhik
Level 1
Level 1

I am trying to hit Admin API for Authentication Logs. I am getting a successful response when I do not pass offset value. In the metadata field, I am getting following value:

"metadata": {
            "next_offset": [
                "1700535264511",
                "c6983461-1b36-4450-8c69-fd842fc997d3"
            ],
            "total_objects"3
        }
 
However, when I pass "offset" key as the parameter and value to that key as "c6983461-1b36-4450-8c69-fd842fc997d3"
then, I am getting 401 unauthorized error with following response body:
{
    "code"40103,
    "message""Invalid signature in request credentials",
    "stat""FAIL"
}
 
Please let me know if I am missing something.
Thanks in advance.
 
1 Reply 1

Looks like the "offset" parameter is being interpreted as part of the authentication credentials, and the value you are providing, "c6983461-1b36-4450-8c69-fd842fc997d3", is not a valid credential. As a result, the API is responding with a 401 Unauthorized error.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io