API referencePolicies
Create a policy
POST
bearerAuthheader
AuthorizationBearer <mr_live_ / mr_test_>API key. Never log the secret.
Idempotency-Key?stringStored 24h. Same key + body returns the original response.
application/json- body
id?stringname?stringversion?integerdefault_action?stringValue in
"allow""require_approval""deny"rules?array<>Policy
application/json- response
id?stringname?stringversion?integerdefault_action?stringValue in
"allow""require_approval""deny"rules?array<>curl -X POST 'https://api.mailroom.gosuevals.com/v1/policies' \ -H 'Content-Type: application/json' \ -d '{}'Example Response201
{ "id": "string", "name": "string", "version": 0, "default_action": "allow", "rules": [ { "id": "string", "action": "allow", "match": {} } ]}