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
limitintegerNumber of results to return per page.
offsetintegerNumber of results to skip before returning results.
searchstringSearch term to lookup results by`id`, `name`, `host`, `username`, `from_email`
orderingstringOrder results by (`id`, `name`, `host`, `port`, `username`, `from_email`, `created_at`, `updated_at`
id_minintegerMinimum ID of the email notifier.
id_maxintegerMaximum ID of the email notifier.
created_datestringExact creation date (`YYYY-MM-DD`).
updated_datestringExact last update date (`YYYY-MM-DD`).
created_fromstringStart date for email notifiers created after this date (`YYYY-MM-DD`).
updated_fromstringStart date for email notifieres updated after this date (`YYYY-MM-DD`).
created_tostringEnd date for email notifiers created before this date (`YYYY-MM-DD`).
updated_tostringEnd date for email notifiers updated before this date (`YYYY-MM-DD`).
hoststringFilter by host of the email notifiers
portintegerFilter by port of the email notifier
from_emailstringFilter by sender mail address
use_tlsbooleanFilter email notifiers using/not using tls
use_sslbooleanFilter email notifiers using/not using ssl
fail_silentlybooleanFilter 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"
}
]
}