Skip to main content
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": "<string>",
        "userId": 123
      },
      "subCategory": "<string>",
      "occurredAt": "2023-11-07T05:31:56Z",
      "targetObjectId": "<string>",
      "action": "<string>",
      "id": "<string>",
      "category": "<string>"
    }
  ]
}

Supported products

Requires one of the following products or higher.
Marketing HubMarketing Hub -Free
Sales HubSales Hub -Free
Service HubService Hub -Free
Content HubContent Hub -Free
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

successful operation

results
object[]
required
paging
object