Get blocked senders¶
Fetch MailUsers blocked from sending due to abuse.
- HTTP Method:
GET
- URL:
https://example.domain.tld/api/v1/stats/blocked/sender/
- Require authentication:
Yes
- Permission level required:
MasterAdmin
/DomainAdmin
/MailUser
Response parameters¶
Parameter | Type | Description |
---|---|---|
blocked_senders | list | List of blocked MailUser email addresses |
Example request (Python)¶
import requests
import json
from pprint import pprint
url = "https://example.domain.tld/api/v1/stats/blocked/sender/"
r = requests.get(url, auth=("admin","long-auth_token-here"))
try:
pprint(r.json())
except:
print(r.text)
Example response (JSON)¶
{'blocked_senders': ['u1@vonmail.com', 'u2@vonmail.com']}