# Add banned email or domain
You can ban a specific email or domain. It results in stopped sending to defined users.
POST
/banned-users/
Attributes | Type | Required | Description |
---|---|---|---|
banned_name | string | yes | A list of banned emails. |
is_domain | boolean | no | A flag that determines if banned name is email or domain. |
# Request
- CURL
- JavaScript
- PHP
- Python
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
}