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.

Attributes

Optional unless marked required

banned_namestringrequired
A list of banned emails.
is_domainboolean
A 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 "Accept: */*; version=2" \
-H "Content-Type: application/json" \
-d '{
"banned_name": "blocked@example.com"
}'

Response examples​

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

Response fields​

Fields returned in the 200 OK response body.

idinteger
A unique identifier for the campaign which is given by User
banned_namestring
A list of banned emails.
is_domainboolean
A flag that determines if banned name is email or domain.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.