API referencePolicies
Dry-run a policy against a hypothetical email
POST
bearerAuthheader
AuthorizationBearer <mr_live_ / mr_test_>API key. Never log the secret.
id*stringapplication/json- body
from*stringto*array<>cc?array<>bcc?array<>reply_to?stringsubject*stringhtml?stringtext?stringtemplate_id?stringvariables?attachments?array<>headers?tags?array<>metadata?scheduled_at?stringFormat
date-timedry_run?booleanForces the sandbox transport for this message.
stream?StreamValue in
"transactional""broadcast""agent"agent_id?stringthread_id?stringDecision
application/json- response
decision?stringValue in
"allow""require_approval""deny""allow_with_delay""pause_agent"matched_rule?string|nullpolicy_id?stringversion?integercurl -X POST 'https://api.mailroom.gosuevals.com/v1/policies/string/simulate' \ -H 'Content-Type: application/json' \ -d '{ "from": "string", "to": [ "user@example.com" ], "subject": "string"}'Example Response200
{ "decision": "allow", "matched_rule": "string", "policy_id": "string", "version": 0}