Skip to content
Start here

Mitigations

List abuse report mitigations
abuse_reports.mitigations.list(strreport_id, MitigationListParams**kwargs) -> SyncV4PagePagination[Optional[MitigationListResponse]]
GET/accounts/{account_id}/abuse-reports/{report_id}/mitigations
Request review on mitigations
abuse_reports.mitigations.review(strreport_id, MitigationReviewParams**kwargs) -> SyncSinglePage[MitigationReviewResponse]
POST/accounts/{account_id}/abuse-reports/{report_id}/mitigations/appeal
ModelsExpand Collapse
class MitigationListResponse:
mitigations: List[Mitigation]
id: str

ID of remediation.

effective_date: str

Date when the mitigation will become active. Time in RFC 3339 format (https://www.rfc-editor.org/rfc/rfc3339.html)

entity_id: str
entity_type: Literal["url_pattern", "account", "zone"]

The type of entity targeted by a mitigation.

One of the following:
"url_pattern"
"account"
"zone"
status: Literal["pending", "active", "in_review", 2 more]

The status of a mitigation

One of the following:
"pending"
"active"
"in_review"
"cancelled"
"removed"
type: Literal["account_suspend", "copyright_interstitial", "geo_block", 16 more]

The type of mitigation applied to a reported entity.

One of the following:
"account_suspend"
"copyright_interstitial"
"geo_block"
"legal_block"
"malware_interstitial"
"misleading_interstitial"
"network_block"
"phishing_interstitial"
"playfairite_enforce"
"r2_takedown_account"
"r2_takedown_bucket"
"r2_takedown_object"
"rate_limit_cache"
"redirect_video_stream"
"registrar_freeze"
"registrar_parking"
"stream_block_account"
"user_suspend"
"workers_takedown_by_zone_id"
class MitigationReviewResponse:
id: str

ID of remediation.

effective_date: str

Date when the mitigation will become active. Time in RFC 3339 format (https://www.rfc-editor.org/rfc/rfc3339.html)

entity_id: str
entity_type: Literal["url_pattern", "account", "zone"]

The type of entity targeted by a mitigation.

One of the following:
"url_pattern"
"account"
"zone"
status: Literal["pending", "active", "in_review", 2 more]

The status of a mitigation

One of the following:
"pending"
"active"
"in_review"
"cancelled"
"removed"
type: Literal["account_suspend", "copyright_interstitial", "geo_block", 16 more]

The type of mitigation applied to a reported entity.

One of the following:
"account_suspend"
"copyright_interstitial"
"geo_block"
"legal_block"
"malware_interstitial"
"misleading_interstitial"
"network_block"
"phishing_interstitial"
"playfairite_enforce"
"r2_takedown_account"
"r2_takedown_bucket"
"r2_takedown_object"
"rate_limit_cache"
"redirect_video_stream"
"registrar_freeze"
"registrar_parking"
"stream_block_account"
"user_suspend"
"workers_takedown_by_zone_id"