List Spend Policy Audit Entries
Returns the policy’s evaluation history, newest first. At most one threshold-crossing entry (limit_reached) is recorded per policy version and billing period, so a policy update can record a new entry without any change in balance. Disabled policies still return their history; deleted policies return 404. There is no pagination: use limit to set how many entries come back. Defaults to period=current_billing_cycle, resolved from the product’s canonical aggregates, not calendar months. Crossings match their recorded billing-period bounds, even if recorded late. Set period=all for history across cycles. Filtering happens before LIMIT. No current cycle returns an empty array; unavailable or disabled cycle resolution returns 503 with code 1013, never an empty success.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Path Parameters
Query Parameters
List Spend Policy Audit Entries
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/billing/spend-policies/$POLICY_ID/audit \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [
{
"message": "message",
"code": 0
}
],
"messages": [
{
"message": "message",
"code": 0
}
],
"result": [
{
"action": "notification",
"balance_cents": 104,
"billing_period_end": "2026-11-01T00:00:00Z",
"billing_period_start": "2026-10-01T00:00:00Z",
"created_at": "2026-10-14T12:34:56Z",
"policy_version": 2,
"reason": "balance reached or exceeded the configured threshold",
"source": "kafka",
"threshold_cents": 100,
"trigger": "limit_reached"
}
],
"success": true
}Returns Examples
{
"errors": [
{
"message": "message",
"code": 0
}
],
"messages": [
{
"message": "message",
"code": 0
}
],
"result": [
{
"action": "notification",
"balance_cents": 104,
"billing_period_end": "2026-11-01T00:00:00Z",
"billing_period_start": "2026-10-01T00:00:00Z",
"created_at": "2026-10-14T12:34:56Z",
"policy_version": 2,
"reason": "balance reached or exceeded the configured threshold",
"source": "kafka",
"threshold_cents": 100,
"trigger": "limit_reached"
}
],
"success": true
}