For CMS Audit Log API we are not getting paging object in the response. We also have an enterprise account that is required for this endpoint but still we are facing this issue.
Hey, @IAccount1
I ran a quick test using the on-page example and set the limit param as =1, =100, (none). I received paging in all three attempts.
Here’s the test I ran using limit = 1:
Request
curl --request GET \
--url 'https://api.hubapi.com/account-info/v3/activity/audit-logs?limit=1' \
--header 'authorization: Bearer YOUR_ACCESS_TOKEN'
Response
HTTP 200
{
"results": [
{
"id": "IiI5eTwwJD5yIDYwIDtjXldVS1RBGl1SSA==",
"category": "CRITICAL_ACTION",
"subCategory": "PRIVATE_APP_ACCESS_TOKEN_VIEW",
"action": "PERFORM",
"targetObjectId": "959085",
"occurredAt": "2024-02-23T20:49:23.674Z",
"actingUser": {
"userId": 10233975,
"userEmail": "jalewis@hubspot.com"
}
}
],
"paging": {
"next": {
"after": "VFZSamQwOUVZM2RQVkVWNlRrUnJNMDlZZDNkTVZFWTRUVmgzTUV4VVJUTk9SRUUxVDBST09FeFVSVEJPUkVFMFRYcFJNRTlFVlNVelJBJTNEJTNE",
"link": "https://api.hubapi.com/account-info/v3/activity/audit-logs?hs_static_app=endpoint-reference-ui&hs_static_app_version=1.4708&limit=1&after=VFZSamQwOUVZM2RQVkVWNlRrUnJNMDlZZDNkTVZFWTRUVmgzTUV4VVJUTk9SRUUxVDBST09FeFVSVEJPUkVFMFRYcFJNRTlFVlNVelJBJTNEJTNE"
}
}
}
Have you filed a support ticket for this yet? That would be my next step.
For your support ticket, I’d be really specific and phrase it like this — “I have an issue with the Account activity API. This is not a custom code question, it is about the functionality of the endpoint itself. We are making a request using the on-page example here, and not getting a paging object. Here’s my example request and the response body we are getting back.”
Best,
Jaycee
