Get `PhishGuard` reports
email_security.phishguard.reports.list(ReportListParams**kwargs) -> SyncSinglePage[ReportListResponse]
GET/accounts/{account_id}/email-security/phishguard/reports
Retrieves PhishGuard reports showing phishing attempts and suspicious email patterns
detected.
Security
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Get `PhishGuard` reports
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_email=os.environ.get("CLOUDFLARE_EMAIL"), # This is the default and can be omitted
api_key=os.environ.get("CLOUDFLARE_API_KEY"), # This is the default and can be omitted
)
page = client.email_security.phishguard.reports.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
page = page.result[0]
print(page.id){
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": [
{
"id": 0,
"content": "content",
"created_at": "2019-12-27T18:11:19.117Z",
"disposition": "MALICIOUS",
"fields": {
"to": [
"string"
],
"ts": "2019-12-27T18:11:19.117Z",
"from": "from",
"postfix_id": "postfix_id"
},
"priority": "priority",
"title": "title",
"ts": "2019-12-27T18:11:19.117Z",
"updated_at": "2019-12-27T18:11:19.117Z",
"tags": [
{
"category": "category",
"value": "value"
}
]
}
],
"success": true
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": [
{
"id": 0,
"content": "content",
"created_at": "2019-12-27T18:11:19.117Z",
"disposition": "MALICIOUS",
"fields": {
"to": [
"string"
],
"ts": "2019-12-27T18:11:19.117Z",
"from": "from",
"postfix_id": "postfix_id"
},
"priority": "priority",
"title": "title",
"ts": "2019-12-27T18:11:19.117Z",
"updated_at": "2019-12-27T18:11:19.117Z",
"tags": [
{
"category": "category",
"value": "value"
}
]
}
],
"success": true
}