Query audit logs
GET
/cms/v3/audit-logs/ https://api.hubapi.com
Returns audit logs based on filters.
Parameters
query Query Parameters
| Name | Type |
|---|---|
after Timestamp after which audit logs will be returned | string |
before Timestamp before which audit logs will be returned | string |
eventType Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). | string[] |
limit The number of logs to return. | number |
objectId Comma separated list of object ids to filter by. | string[] |
objectType Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) | string[] |
sort The sort direction for the audit logs. (Can only sort by timestamp). | string[] |
userId Comma separated list of user ids to filter by. | string[] |
Responses
200 application/json
successful operation
interface CollectionResponsePublicAuditLog {
paging?:Paging2 ;
results:PublicAuditLog [];
}
paging?:
results:
}
default */*
An error occurred.
interface Error {
category: string;
context?: { };
correlationId: string;
errors?:ErrorDetail [];
links?: { };
message: string;
subCategory?: string;
}
category: string;
context?: { };
correlationId: string;
errors?:
links?: { };
message: string;
subCategory?: string;
}