GET
/
account-info
/
v3
/
activity
/
audit-logs
Retrieve audit logs
curl --request GET \
  --url https://api.hubapi.com/account-info/v3/activity/audit-logs \
  --header 'Authorization: Bearer <token>'
{
  "paging": {
    "next": {
      "link": "",
      "after": ""
    }
  },
  "results": [
    {
      "actingUser": {
        "userEmail": "pgibbons@initech.com",
        "userId": 2931299
      },
      "subCategory": "LOGIN_SUCCEEDED",
      "occurredAt": "2023-11-07T05:31:56Z",
      "targetObjectId": "1",
      "action": "PERFORM",
      "id": "5432653",
      "category": "LOGIN"
    }
  ]
}
Supported products
Requires one of the following products or higher.
Marketing HubMarketing HubFree
Sales HubSales HubFree
Service HubService HubFree
Content HubContent HubFree

Required Scopes

This API requires one of the following scopes:
  • account-info.security.read

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

after
string

The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results.

limit
integer

The maximum number of results to display per page.

actingUserId
integer[]

The ID of a user, for retrieving user-specific logs.

occurredAfter
string<date-time>

A timestamp, as a starting point for retrieving activity logs.

occurredBefore
string<date-time>

A timestamp, as an end point for retrieving activity logs.

sort
string[]

Set to occurredAt to order results by the time of the event. By default, events are ordered from oldest to newest.

Response

200
application/json

successful operation

The response is of type object.