Submit an abuse report
Submit an abuse report of a particular type.
Requires the abuse-reports entitlement on the account (Enterprise
accounts have it by default; other accounts must request access) and an
API token with the Trust and Safety Write permission. If the account
is not entitled, the request is rejected with an HTTP 401 response
(see below).
Delegated reports: In limited circumstances, Cloudflare works with
select customers who have established abuse-handling programs. For
these customers, Cloudflare may forward abuse reports directly and in
full—including reporter contact information, comments, and supporting
evidence—without redaction or preprocessing by Cloudflare. This allows
the customer to investigate and respond using their own policies and
processes. For delegated reports, the report—including contact
information and comments—will be forwarded to the customer in full
regardless of the host_notification and owner_notification values.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Accepted Permissions (at least one required)
Parameters
Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
The name of the copyright holder. Text not exceeding 60 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
Notification type based on the abuse type. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of this value. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
Notification type based on the abuse type. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of this value. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
Required for DMCA reports, should be same as Name. An affirmation that all information in the report is true and accurate while agreeing to the policies of Cloudflare’s abuse reports
Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
A list of valid URLs separated by ‘\n’ (new line character). The list of the URLs should not exceed 250 URLs. All URLs should have the same hostname. Each URL should be unique. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
Any additional comments about the infringement not exceeding 2000 characters. Comments are kept internal to Cloudflare and not shared with the host or customer as part of regular processing. For delegated reports, comments may be shared in full.
Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
Text not exceeding 20 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
Submit an abuse report
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
abuse_report = client.abuse_reports.create(
report_param="report_param",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
act="abuse_dmca",
address1="x",
agent_name="x",
agree=1,
city="x",
country="x",
email="email",
email2="email2",
host_notification="send",
name="x",
original_work="x",
owner_notification="send",
signature="signature",
state="x",
urls="urls",
)
print(abuse_report){
"abuse_rand": "abuse_rand",
"request": {
"act": "act"
},
"result": "result"
}Returns Examples
{
"abuse_rand": "abuse_rand",
"request": {
"act": "act"
},
"result": "result"
}