Skip to main content
GET/banned-users/

Get all banned users details

You can return a list of your banned users.

Results are paginated: follow next to get the next page (see Response pagination).

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/banned-users/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 2,
"banned_name": "*test.com",
"is_domain": true
},
{
"id": 1,
"banned_name": "test@mail.com",
"is_domain": false
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].idinteger
A unique identifier for the campaign which is given by User
results[].banned_namestring
Banned email address, or domain when is_domain is true.
results[].is_domainboolean
true when banned_name is a whole domain.
note

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