Skip to main content
POST
Take action on an email
Taking a Decision Center action through the API is in beta. The request and response may change. If the endpoint returns 403 with “This feature is not available for your tenant”, it isn’t enabled for your tenant yet — contact Ocean support.

Authorizations

X-Api-Key
string
header
required

API key for authentication

Headers

X-Api-Key
string
required

Authentication API Key

Body

application/json

The email and the action to take

action
enum<string>
required
Available options:
quarantine,
move_to_trash,
move_to_spam,
move_to_graymail,
move_to_promotions,
restore
Example:

"quarantine"

include_reason_in_correction_email
boolean
internet_message_id
string

InternetMessageID is the email's RFC 5322 Message-Id.

Maximum string length: 998
Example:

"<CAF=x1@mail.example.com>"

reason
string
Maximum string length: 500
send_correction_email
boolean
threat_id
string

ThreatID is the threat's id, as in the Portal and GET /api/v1/threats.

Maximum string length: 998
Example:

"e651a45ce9cea7e8add31b7643732654bab3591675429d98b8ed60b074740050"

verdict
enum<string>

Verdict also changes the email's verdict. Omit it to keep the current one.

Available options:
malicious,
spam,
safe,
graymail,
simulation
Example:

"malicious"

Response

The action ran

results
object
status
integer