emails
Creates, updates, deletes, gets or lists an emails resource.
Overview
| Name | emails |
| Type | Resource |
| Id | cloudflare.abuse_reports.emails |
Fields
The following fields are returned by SELECT queries:
- list
List abuse report emails successful
| Name | Datatype | Description |
|---|---|---|
id | string | Unique identifier of the email. |
body | string | Body content of the email. |
recipient | string | Email address of the recipient. |
sent_at | string | When the email was sent. Time in RFC 3339 format (https://www.rfc-editor.org/rfc/rfc3339.html) (example: 2009-11-10T23:00:00Z) |
subject | string | Subject line of the email. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id, report_id | page, per_page | List emails sent to the customer for an abuse report. Returns all successful customer emails sent for the specified abuse report. Does not include emails sent to hosts or submitters. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
report_id | string | Abuse Report ID |
page | integer | Page number to retrieve (default 1) |
per_page | integer | Number of emails per page (default 20, max 100) |
SELECT examples
- list
List emails sent to the customer for an abuse report. Returns all successful customer emails sent for the specified abuse report. Does not include emails sent to hosts or submitters.
SELECT
id,
body,
recipient,
sent_at,
subject
FROM cloudflare.abuse_reports.emails
WHERE account_id = '{{ account_id }}' -- required
AND report_id = '{{ report_id }}' -- required
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
;