Email Security

email_security

Email Security

Investigate

email_security.investigate

Methods

Get Message Details -> Envelope<{ id, action_log, client_recipients, 18 more... }>
get/accounts/{account_id}/email-security/investigate/{postfix_id}

Get message details

Security
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example: X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example: X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194

Parameters
account_id: string

Account Identifier

postfix_id: string

The identifier of the message.

Response fields
errors: Array<>
messages: Array<>
result: { id, action_log, client_recipients, 18 more... }
success: boolean
Request example
200Example
Search Email Messages -> V4PagePaginationArray<{ id, action_log, client_recipients, 18 more... }>
get/accounts/{account_id}/email-security/investigate

Returns information for each email that matches the search parameter(s).

email_security.investigate.detections

Methods

Get Message Detection Details -> Envelope<{ action, attachments, headers, 5 more... }>
get/accounts/{account_id}/email-security/investigate/{postfix_id}/detections

Returns detection details such as threat categories and sender information for non-benign messages.

email_security.investigate.move

Methods

Move Multiple Messages -> Envelope<Array<{ completed_timestamp, destination, item_count, 4 more... }>>
post/accounts/{account_id}/email-security/investigate/move

Move multiple messages

Move A Message -> Envelope<Array<{ completed_timestamp, destination, item_count, 4 more... }>>
post/accounts/{account_id}/email-security/investigate/{postfix_id}/move

Move a message

email_security.investigate.preview

Methods

Preview For Non Detection Messages -> Envelope<{ screenshot }>
post/accounts/{account_id}/email-security/investigate/preview

Preview for non-detection messages

Get Email Preview -> Envelope<{ screenshot }>
get/accounts/{account_id}/email-security/investigate/{postfix_id}/preview

Returns a preview of the message body as a base64 encoded PNG image for non-benign messages.

email_security.investigate.raw

Methods

Get Raw Email Content -> Envelope<{ raw }>
get/accounts/{account_id}/email-security/investigate/{postfix_id}/raw

Returns the raw eml of any non-benign message.

email_security.investigate.reclassify

Methods

Change Email Classfication -> Envelope<unknown>
post/accounts/{account_id}/email-security/investigate/{postfix_id}/reclassify

Change email classfication

email_security.investigate.release

Methods

Release Messages From Quarantine -> Envelope<Array<{ postfix_id, delivered, failed, 1 more... }>>
post/accounts/{account_id}/email-security/investigate/release

Release messages from quarantine

email_security.investigate.trace

Methods

Get Email Trace -> Envelope<{ inbound, outbound }>
get/accounts/{account_id}/email-security/investigate/{postfix_id}/trace

Get email trace

email_security.settings

email_security.settings.allow_policies

Methods

Create An Email Allow Policy -> Envelope<{ id, created_at, is_acceptable_sender, 11 more... }>
post/accounts/{account_id}/email-security/settings/allow_policies

Create an email allow policy

Delete An Email Allow Policy -> Envelope<{ id }>
delete/accounts/{account_id}/email-security/settings/allow_policies/{policy_id}

Delete an email allow policy

Update An Email Allow Policy -> Envelope<{ id, created_at, is_acceptable_sender, 11 more... }>
patch/accounts/{account_id}/email-security/settings/allow_policies/{policy_id}

Update an email allow policy

Get An Email Allow Policy -> Envelope<{ id, created_at, is_acceptable_sender, 11 more... }>
get/accounts/{account_id}/email-security/settings/allow_policies/{policy_id}

Get an email allow policy

List Email Allow Policies -> V4PagePaginationArray<{ id, created_at, is_acceptable_sender, 11 more... }>
get/accounts/{account_id}/email-security/settings/allow_policies

Lists, searches, and sorts an account’s email allow policies.

email_security.settings.block_senders

Methods

Create A Blocked Email Sender -> Envelope<{ id, created_at, is_regex, 4 more... }>
post/accounts/{account_id}/email-security/settings/block_senders

Create a blocked email sender

Delete A Blocked Email Sender -> Envelope<{ id }>
delete/accounts/{account_id}/email-security/settings/block_senders/{pattern_id}

Delete a blocked email sender

Update A Blocked Email Sender -> Envelope<{ id, created_at, is_regex, 4 more... }>
patch/accounts/{account_id}/email-security/settings/block_senders/{pattern_id}

Update a blocked email sender

Get A Blocked Email Sender -> Envelope<{ id, created_at, is_regex, 4 more... }>
get/accounts/{account_id}/email-security/settings/block_senders/{pattern_id}

Get a blocked email sender

List Blocked Email Senders -> V4PagePaginationArray<{ id, created_at, is_regex, 4 more... }>
get/accounts/{account_id}/email-security/settings/block_senders

List blocked email senders

email_security.settings.domains

Methods

Unprotect Multiple Email Domains -> Envelope<Array<{ id }>>
delete/accounts/{account_id}/email-security/settings/domains

Unprotect multiple email domains

Unprotect An Email Domain -> Envelope<{ id }>
delete/accounts/{account_id}/email-security/settings/domains/{domain_id}

Unprotect an email domain

Update An Email Domain -> Envelope<{ id, allowed_delivery_modes, created_at, 12 more... }>
patch/accounts/{account_id}/email-security/settings/domains/{domain_id}

Update an email domain

Get An Email Domain -> Envelope<{ id, allowed_delivery_modes, created_at, 12 more... }>
get/accounts/{account_id}/email-security/settings/domains/{domain_id}

Get an email domain

List Protected Email Domains -> V4PagePaginationArray<{ id, allowed_delivery_modes, created_at, 12 more... }>
get/accounts/{account_id}/email-security/settings/domains

Lists, searches, and sorts an account’s email domains.

Email SecuritySettings

Impersonation Registry

email_security.settings.impersonation_registry

Methods

Create An Entry In Impersonation Registry -> Envelope<{ id, created_at, is_email_regex, 8 more... } | Array<{ id, created_at, is_email_regex, 8 more... }>>
post/accounts/{account_id}/email-security/settings/impersonation_registry

Create an entry in impersonation registry

Delete An Entry From Impersonation Registry -> Envelope<{ id }>
delete/accounts/{account_id}/email-security/settings/impersonation_registry/{display_name_id}

Delete an entry from impersonation registry

Update An Entry In Impersonation Registry -> Envelope<{ id, created_at, is_email_regex, 8 more... }>
patch/accounts/{account_id}/email-security/settings/impersonation_registry/{display_name_id}

Update an entry in impersonation registry

Get An Entry In Impersonation Registry -> Envelope<{ id, created_at, is_email_regex, 8 more... }>
get/accounts/{account_id}/email-security/settings/impersonation_registry/{display_name_id}

Get an entry in impersonation registry

List Entries In Impersonation Registry -> V4PagePaginationArray<{ id, created_at, is_email_regex, 8 more... }>
get/accounts/{account_id}/email-security/settings/impersonation_registry

Lists, searches, and sorts entries in the impersonation registry.

Email SecuritySettings

Trusted Domains

email_security.settings.trusted_domains

Methods

Create A Trusted Email Domain -> Envelope<{ id, created_at, is_recent, 5 more... } | Array<{ id, created_at, is_recent, 5 more... }>>
post/accounts/{account_id}/email-security/settings/trusted_domains

Create a trusted email domain

Delete A Trusted Email Domain -> Envelope<{ id }>
delete/accounts/{account_id}/email-security/settings/trusted_domains/{trusted_domain_id}

Delete a trusted email domain

Update A Trusted Email Domain -> Envelope<{ id, created_at, is_recent, 5 more... }>
patch/accounts/{account_id}/email-security/settings/trusted_domains/{trusted_domain_id}

Update a trusted email domain

Get A Trusted Email Domain -> Envelope<{ id, created_at, is_recent, 5 more... }>
get/accounts/{account_id}/email-security/settings/trusted_domains/{trusted_domain_id}

Get a trusted email domain

List Trusted Email Domains -> V4PagePaginationArray<{ id, created_at, is_recent, 5 more... }>
get/accounts/{account_id}/email-security/settings/trusted_domains

Lists, searches, and sorts an account’s trusted email domains.

Email Security

Submissions

email_security.submissions

Methods

Get Reclassify Submissions -> V4PagePaginationArray<{ requested_ts, submission_id, original_disposition, 7 more... }>
get/accounts/{account_id}/email-security/submissions

This endpoint returns information for submissions to made to reclassify emails.