Audit Logs

audit_logs

Methods

Get Account Audit Logs -> V4PagePaginationArray<>
get/accounts/{account_id}/audit_logs

Gets a list of audit logs for an account. Can be filtered by who made the change, on which zone, and the timeframe of the change.

Security

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY

Accepted Permissions (at least one required)

Account Settings Write Account Settings Read

Parameters
account_id: string

Identifier

id: string
Optional

Finds a specific log by its ID.

action: {
Optional
type: string
Optional

Filters by the action type.

}
actor: {
Optional
email: string
Optional

Filters by the email address of the actor that made the change.

ip: string
Optional

Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.

}
before:
Optional

Limits the returned results to logs older than the specified date. A full-date that conforms to RFC3339.

UnionMember0 = string
UnionMember1 = string
direction:
Optional

Changes the direction of the chronological sorting.

"desc"
"asc"
export: boolean
Optional

Indicates that this request is an export of logs in CSV format.

hide_user_logs: boolean
Optional

Indicates whether or not to hide user level audit logs.

page: number
Optional

Defines which page of results to return.

per_page: number
Optional

Sets the number of results to return per page.

since:
Optional

Limits the returned results to logs newer than the specified date. A full-date that conforms to RFC3339.

UnionMember0 = string
UnionMember1 = string
zone: {
Optional
name: string
Optional

Filters by the name of the zone associated to the change.

}
Response fields
UnionMember0 = { errors, messages, result, 1 more... }
AaaAPIResponseCommon = { errors, messages, success }
Request example
200Example