Create allow/block rule
Allow/Block rules are an abuse prevention mechanism that allows you to define an allow-list and a block-list indicating whether a conversation can be start for a given contact.
Authorizations
Path parameters
workspaceIdstring · uuidrequired
The workspace ID
Example:
b4e02c85-c6d2-4b15-8885-e09671799c61
Body
categorystring · enumrequired
The category of the AllowBlockRule.
Options:
all
, domain
, domain_suffix
, email
valuestringrequired
typestring · enumrequired
The type of the AllowBlockRule.
Options:
allow
, reject
, suspend
Responses
application/json
application/json
application/json
cURL
JavaScript
Python
HTTP
201
409
422
Examples
Last updated
Was this helpful?