Allow/Block lists

Create an allow/block entry

post/policies

Request

  • Base URL: https://api.oveyon.com/v1
  • URL: https://api.oveyon.com/v1/policies
  • Auth: HTTP bearer

Request body

scope'outbound' | 'inbound' required
kind'allow' | 'block' required
patternstring required

An address, a domain or a subdomain wildcard (*.b.com). On an outbound list it is ASCII only (an IDN domain in xn-- form) — otherwise 400 with reason: address_not_ascii.

domainIdinteger

Omit (or 0) for every domain of the account.

credentialType'none' | 'smtp' | 'apiKey'

Omit (or none) for every credential.

credentialIdinteger
commentstring

Response

Created

idinteger
scope'outbound' | 'inbound'

Which direction the list judges.

kind'allow' | 'block'
patternstring
domainIdinteger nullable

0 = every domain of the account.

credentialType'none' | 'smtp' | 'apiKey' | 'null' nullable

none = every credential.

credentialIdinteger nullable

0 with credentialType none.

pausedboolean
pausedAtstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.