Fraud

fraud

Methods

Get Fraud Detection Settings -> Envelope<>
get/zones/{zone_id}/fraud_detection/settings

Retrieve Fraud Detection settings for a zone.

Update Fraud Detection Settings -> Envelope<>
put/zones/{zone_id}/fraud_detection/settings

Update Fraud Detection settings for a zone.

Notes on username_expressions behavior:

  • If omitted or set to null, expressions are not modified.
  • If provided as an empty array [], all expressions will be cleared.
Security

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

Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY

Accepted Permissions (at least one required)

Fraud Detection Write

path Parameters
zone_id: string
(maxLength: 32)

Identifier.

Response fields
errors: Array<{ code, message, documentation_url, 1 more... }>
messages: Array<{ code, message, documentation_url, 1 more... }>
success: true

Whether the API call was successful.

result:
Optional
Request example
200Example

Domain types

FraudSettings = { user_profiles, username_expressions }