Get Security Events
GET https://{{et_subdomain}}.rest.marketingcloudapis.com/data/v1/audit/securityEvents?$pagesize=100&$page=1&$orderBy=createdDate desc
https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/getSecurityEvents.htm
Retrieves logged Audit Trail security events for the authenticated user’s account and its children. Logins are audited at the enterprise level.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
$pagesize | number | ||
$page | number | ||
$orderBy | string |
RESPONSES
status: OK
{"page":1,"pageSize":2,"count":2556,"items":[{"id":3784335848,"createdDate":"2019-07-26T07:37:23.667","memberId":1447640,"enterpriseId":1447640,"employee":{"employeeName":"Event Notification App API app user","userName":"8faa2073-7946-411e-8b7b-59b2b77989c7"},"ipAddress":"1.1.1.1","eventType":{"id":1,"name":"Login Attempted"},"loginStatus":{"id":4,"name":"Successful"},"eventSource":{"id":21,"name":"Fuel API"}},{"id":3784335844,"createdDate":"2019-07-26T07:37:23.637","memberId":1447640,"enterpriseId":1447640,"employee":{"employeeName":"Event Notification App API app user","userName":"8faa2073-7946-411e-8b7b-59b2b77989c7"},"ipAddress":"1.1.1.1","eventType":{"id":1,"name":"Login Attempted"},"loginStatus":{"id":4,"name":"Successful"},"eventSource":{"id":21,"name":"Fuel API"}}]}