Skip to main content

List All Email Notifiers

List all email notifiers.

HTTP Request​

GET/api/notifications/notifiers/email

Authorization​

Authorization

  • Required: Yes
  • Permission: Staff with EmailNotifierPermission or Admin
  • Permission Code: 2832
  • Authentication: Token-based (Authorization: Token <your_api_key>)

Query Parameters​

ParameterTypeDefaultDescription
limitinteger—Number of results to return per page.
offsetinteger—Number of results to skip before returning results.
searchstring—Search term to lookup results by`id`, `name`, `host`, `username`, `from_email`
orderingstring—Order results by (`id`, `name`, `host`, `port`, `username`, `from_email`, `created_at`, `updated_at`
id_mininteger—Minimum ID of the email notifier.
id_maxinteger—Maximum ID of the email notifier.
created_datestring—Exact creation date (`YYYY-MM-DD`).
updated_datestring—Exact last update date (`YYYY-MM-DD`).
created_fromstring—Start date for email notifiers created after this date (`YYYY-MM-DD`).
updated_fromstring—Start date for email notifieres updated after this date (`YYYY-MM-DD`).
created_tostring—End date for email notifiers created before this date (`YYYY-MM-DD`).
updated_tostring—End date for email notifiers updated before this date (`YYYY-MM-DD`).
hoststring—Filter by host of the email notifiers
portinteger—Filter by port of the email notifier
from_emailstring—Filter by sender mail address
use_tlsboolean—Filter email notifiers using/not using tls
use_sslboolean—Filter email notifiers using/not using ssl
fail_silentlyboolean—Filter email notifiers that will/will not fail silently

Example Requests​

1import requests
2
3# List all email notifiers
4response = requests.get('http://www.example.com/api/notifications/notifiers/email',
5  headers={'Authorization': 'Token <your_api_key>'}
6)
7print(response.json())

Object Structure​

FieldTypeDescription
countIntegerTotal number of categories
nextStringURL for the next page of results
previousStringURL for the previous page of results
resultsArray[Object]Array of EmailNotifier objects

EmailNotifier Object Data Structure

FieldTypeDescription
idIntegerUnique ID of the email notifier.
nameStringName of the email notifier
hostStringHost name of the email notifier
portIntegerPort number of the email notifier
usernameStringUsername of the email notifier
passwordStringPassword of the email notifier
from_emailStringSender email address of the email notifier
use_tlsBooleanWhether the email notifier use tls or not
use_sslBooleanWhether the email notifier use ssl or not
fail_silentlyBooleanWhether the email notifier will fail silently in case of error
created_atString (ISO 8601)Timestamp when the email notifier was created.
updated_atString (ISO 8601)Timestamp when the email notifier was last updated.

Example Response​

{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 3,
"name": "moeinmail",
"host": "mail.moeinmail.ir",
"port": 587,
"username": "admin",
"password": "123",
"from_email": "admin@moeinmail.ir",
"use_tls": true,
"use_ssl": false,
"fail_silently": false,
"created_at": "2025-11-22T13:35:43.794813Z",
"updated_at": "2025-11-22T13:35:43.794818Z"
}
]
}