Search + K

Command Palette

Search for a command to run...

Sign In

Retrieve audit logs

GET /account-info/v3/activity/audit-logs
Copy endpoint
https://api.hubapi.com

Retrieve activity history for user actions related to approvals, content updates, CRM object updates, security activity, and more (Enterprise only). Learn more about activities included in audit log exports.

Parameters

query Query Parameters

Name Type
actingUserId

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

number[]
after

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.

string
limit

The maximum number of results to display per page.

number
occurredAfter

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

string
occurredBefore

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

string
sort

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

string[]

Responses

200 application/json

successful operation

interface CollectionResponsePublicApiUserActionEventForwardPaging {
paging?: ForwardPaging
interface ForwardPaging {
next?: NextPage35;
}
;
results: PublicApiUserActionEvent
interface PublicApiUserActionEvent {
actingUser: ActingUser;
action: string;
category: string;
id: string;
occurredAt: string;
subCategory?: string;
targetObjectId?: string;
}
[]
;
}
default */*

An error occurred.

interface Error1 {
category: string;
context?: { };
correlationId: string;
errors?: ErrorDetail1
interface ErrorDetail1 {
code?: string;
context?: { };
in?: string;
message: string;
subCategory?: string;
}
[]
;
links?: { };
message: string;
subCategory?: string;
}