List abuse reports against the account
client.abuseReports.list(AbuseReportListParams { account_id, created_after, created_before, 8 more } params, RequestOptionsoptions?): V4PagePagination<AbuseReportListResponse { reports } >
GET/accounts/{account_id}/abuse-reports
List abuse reports made against domains or other content associated with the account. To list reports that the account submitted, use the submitted abuse reports endpoint instead.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
List abuse reports against the account
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const abuseReportListResponse of client.abuseReports.list({
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
})) {
console.log(abuseReportListResponse.reports);
}{
"success": true,
"errors": [
{
"message": "message"
}
],
"messages": [
{
"message": "message"
}
],
"result": {
"reports": [
{
"id": "id",
"cdate": "2009-11-10T23:00:00Z",
"domain": "domain",
"mitigation_summary": {
"accepted_url_count": 0,
"active_count": 0,
"external_host_notified": true,
"in_review_count": 0,
"pending_count": 0
},
"status": "accepted",
"type": "PHISH",
"justification": "justification",
"original_work": "original_work",
"submitter": {
"company": "company",
"email": "email",
"name": "name",
"telephone": "telephone"
},
"urls": [
"string"
]
}
]
},
"result_info": {
"count": 0,
"page": 0,
"per_page": 0,
"total_count": 0,
"total_pages": 0
}
}Returns Examples
{
"success": true,
"errors": [
{
"message": "message"
}
],
"messages": [
{
"message": "message"
}
],
"result": {
"reports": [
{
"id": "id",
"cdate": "2009-11-10T23:00:00Z",
"domain": "domain",
"mitigation_summary": {
"accepted_url_count": 0,
"active_count": 0,
"external_host_notified": true,
"in_review_count": 0,
"pending_count": 0
},
"status": "accepted",
"type": "PHISH",
"justification": "justification",
"original_work": "original_work",
"submitter": {
"company": "company",
"email": "email",
"name": "name",
"telephone": "telephone"
},
"urls": [
"string"
]
}
]
},
"result_info": {
"count": 0,
"page": 0,
"per_page": 0,
"total_count": 0,
"total_pages": 0
}
}