PHP Client for Cloudflare API
Logs

Audit

Audit endpoint reference.

List

Gets a list of audit logs for an account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
paramsarrayNo[]Array containing the necessary params, requires since and before.
php
$response = $client->accounts()->logs()->audit()->list('ACCOUNT_ID', []);
View this operation on the Cloudflare API Reference

History

Returns the chronological change history for the resource identified by the given audit log entry.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
idstringYesAudit log entry identifier used to locate the resource.
paramsarrayNo[]Array containing the necessary params, requires action_time, since and before.
php
$response = $client->accounts()->logs()->audit()->history('ACCOUNT_ID', 'ID', []);
View this operation on the Cloudflare API Reference

Product Categories

Lists the available audit log product categories and the resource products each one expands to.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
php
$response = $client->accounts()->logs()->audit()->productCategories('ACCOUNT_ID');
View this operation on the Cloudflare API Reference
Copyright © 2026