Get PhishGuard reports
GET/accounts/{account_id}/email-security/phishguard/reports
Retrieves PhishGuard security alert reports for a specified date range. Reports include detected threats, dispositions, and contextual information. Use for security monitoring and threat analysis.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
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
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/email-security/phishguard/reports \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"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",
"disposition": "MALICIOUS",
"fields": {
"to": [
"string"
],
"from": "from",
"occurred_at": "2019-12-27T18:11:19.117Z",
"postfix_id": "postfix_id",
"ts": "2019-12-27T18:11:19.117Z"
},
"priority": "priority",
"title": "title",
"created_at": "2019-12-27T18:11:19.117Z",
"tags": [
{
"category": "category",
"value": "value"
}
],
"ts": "2019-12-27T18:11:19.117Z",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"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",
"disposition": "MALICIOUS",
"fields": {
"to": [
"string"
],
"from": "from",
"occurred_at": "2019-12-27T18:11:19.117Z",
"postfix_id": "postfix_id",
"ts": "2019-12-27T18:11:19.117Z"
},
"priority": "priority",
"title": "title",
"created_at": "2019-12-27T18:11:19.117Z",
"tags": [
{
"category": "category",
"value": "value"
}
],
"ts": "2019-12-27T18:11:19.117Z",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"success": true
}