Skip to main content

emails

Creates, updates, deletes, gets or lists an emails resource.

Overview

Nameemails
TypeResource
Idcloudflare.abuse_reports.emails

Fields

The following fields are returned by SELECT queries:

List abuse report emails successful

NameDatatypeDescription
idstringUnique identifier of the email.
bodystringBody content of the email.
recipientstringEmail address of the recipient.
sent_atstringWhen the email was sent. Time in RFC 3339 format (https://www.rfc-editor.org/rfc/rfc3339.html) (example: 2009-11-10T23:00:00Z)
subjectstringSubject line of the email.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, report_idpage, per_pageList 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
report_idstringAbuse Report ID
pageintegerPage number to retrieve (default 1)
per_pageintegerNumber of emails per page (default 20, max 100)

SELECT examples

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 }}'
;