Skip to main content
POST/banned-users/

Add banned email or domain

You can ban a specific email or domain. It results in stopped sending to defined users.

AttributesTypeRequiredDescription
banned_namestringyesA list of banned emails.
is_domainbooleannoA flag that determines if banned name is email or domain.

Request​

curl -X POST
"https://<your_app_subdomain>.user.com/api/public/banned-users/"
-H 'Authorization: Token <your_64_char_api_key>'
-H 'Content-Type: application/json'
-H "Accept: */*; version=2"
-d '{ "banned_name": "test@mail.com"}'

Response​

{
"id": 36,
"banned_name": "test@mail.com",
"is_domain": false
}