Notification
Manage notification functions.
List all of system email templates
OK
Error
GET /api/admin/email_templates HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"name": "HARD_DISK_EXCEEDED",
"from": "",
"subject": "Low System Disk Space",
"body": "%%DATE_TIME%%: your PBX server [%%PBX_WEB_DOMAIN%%] disk remaining free space is critically low. Used: %%USED_SIZE%% G; free: %%FREE_SIZE%% G.\n",
"protected": true
}
]
}This API fetches the details of a custom email template (protected=false) based on its name.
System default templates (protected=true) will not be returned.
If no custom template exists with the given name, the API returns a 404 Not Found.
The name of the system email template.
Can be either:
2FA_VERIFICATION: Authentication with two factor notification.CPU_EXCEEDED: CPU usage exceeded threshold notification.HARD_DISK_EXCEEDED: Hard disk usage exceeded threshold notification.IP_BLOCKED: IP adddredd blocked notification.LICENSE_LIMIT: License limited notification.MEMORY_EXCEEDED: Memory usage exceeded threshold notification.RESET_PASSWORD: Reset password notification.SERVICE_CONNECTED: Service connected notification.SERVICE_DISCONNECTED: Service disconnected notification.TENANT_DISK_QUOTA_LIMIT_REACHED: Tenant disk quota limited notification.TRUNK_CALL_LIMIT_REACHED: Trunk call limited notification.TRUNK_CONNECTED: Trunk connected notification.TRUNK_DISCONNECTED: Trunk disconnected notification.UPDATE_PUSH_CERTS_FAILED: Update push certificates failed notification.WEBHOOK_QUEUE_TOO_LARGE: Webhook queue full notification.
IP_BLOCKEDPossible values: OK
The name of the system email template.
Can be either:
2FA_VERIFICATION: Authentication with two factor notification.CPU_EXCEEDED: CPU usage exceeded threshold notification.HARD_DISK_EXCEEDED: Hard disk usage exceeded threshold notification.IP_BLOCKED: IP adddredd blocked notification.LICENSE_LIMIT: License limited notification.MEMORY_EXCEEDED: Memory usage exceeded threshold notification.RESET_PASSWORD: Reset password notification.SERVICE_CONNECTED: Service connected notification.SERVICE_DISCONNECTED: Service disconnected notification.TENANT_DISK_QUOTA_LIMIT_REACHED: Tenant disk quota limited notification.TRUNK_CALL_LIMIT_REACHED: Trunk call limited notification.TRUNK_CONNECTED: Trunk connected notification.TRUNK_DISCONNECTED: Trunk disconnected notification.UPDATE_PUSH_CERTS_FAILED: Update push certificates failed notification.WEBHOOK_QUEUE_TOO_LARGE: Webhook queue full notification.
IP_BLOCKEDPossible values: Notification email body.
Notification email subject field.
Notification email from field.
Indicates whether the template is system-protected:
- true: System default template (read-only, cannot be modified)
- false: Custom template (editable)
trueError
GET /api/admin/email_templates/{name} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "HARD_DISK_EXCEEDED",
"from": "PBX System <system@pbx.com>",
"subject": "Low System Disk Space",
"body": "%%DATE_TIME%%: your PBX server [%%PBX_WEB_DOMAIN%%] disk remaining free space is critically low. Used: %%USED_SIZE%% G; free: %%FREE_SIZE%% G.\n",
"protected": false
}This API updates an custom system email template.
The name of the system email template.
Can be either:
2FA_VERIFICATION: Authentication with two factor notification.CPU_EXCEEDED: CPU usage exceeded threshold notification.HARD_DISK_EXCEEDED: Hard disk usage exceeded threshold notification.IP_BLOCKED: IP adddredd blocked notification.LICENSE_LIMIT: License limited notification.MEMORY_EXCEEDED: Memory usage exceeded threshold notification.RESET_PASSWORD: Reset password notification.SERVICE_CONNECTED: Service connected notification.SERVICE_DISCONNECTED: Service disconnected notification.TENANT_DISK_QUOTA_LIMIT_REACHED: Tenant disk quota limited notification.TRUNK_CALL_LIMIT_REACHED: Trunk call limited notification.TRUNK_CONNECTED: Trunk connected notification.TRUNK_DISCONNECTED: Trunk disconnected notification.UPDATE_PUSH_CERTS_FAILED: Update push certificates failed notification.WEBHOOK_QUEUE_TOO_LARGE: Webhook queue full notification.
IP_BLOCKEDPossible values: Notification email body.
Notification email subject field.
Notification email from field.
OK
No content
Error
POST /api/admin/email_templates/{name} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 226
{
"from": "PBX System <system@pbx.com>",
"subject": "Low System Disk Space",
"body": "%%DATE_TIME%%: your PBX server [%%PBX_WEB_DOMAIN%%] disk remaining free space is critically low. Used: %%USED_SIZE%% G; free: %%FREE_SIZE%% G.\n"
}No content
Retrieve details of notification settings.
OK
The email server type.
Can be either:
SMTP: Use generic SMTP server.MS365Use Microsoft 365 email service.GMAILUse Google Gmail service.
SMTP server used for sending mails.
A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535. For TCP, port number 0 is reserved and cannot be used, while for UDP, the source port is optional and a value of zero means no port
80A Reply-To address is identified by inserting the Reply-To header in your email.
It is the email address that the reply message is sent
when you want the reply to go to an email address that is different than the From: address.
Username or email address.
The authentication protocols.
Can be either:
DISABLE: Skip authentication mechanism.AUTO: Use auto-selected authentication algorithms by server (Currently only supports LOGIN and PLAIN).LOGIN: Use LOGIN authentication mechanism.PLAINUse PLAIN authentication mechanism.
AUTOPossible values: Whether to enable TLS/SSL.
trueWhether StartTLS is automatically enabled.
falseComma-separated list of email address that should receive notifications.
Allow up to 15 email addresses.
Has ability to use system email server settings to send notifications.
Notify via email when user registered.
falseNotify queue manager via email when SLA time has been breached.
falseNotify queue manager via email when callback has been made.
falseNotify queue manager via email when callback failed.
falseNotify queue Manager via email when call lost.
falseSend a notification email when emergency number dialed.
trueSend a notification email when license limit reached.
trueSend a notification email when trunk call limited reached.
trueError
GET /api/tenant/notification HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"type": "SMTP",
"server": "",
"port": 1000,
"reply_to": "",
"username": "example",
"auth": "AUTO",
"enable_tls_ssl": true,
"enable_starttls_auto": true,
"recipients": "",
"enable_system_email_server": false,
"notify_user_registration": true,
"notify_queue_sla_breached": false,
"notify_queue_callback": false,
"notify_queue_callback_failed": false,
"notify_queue_call_lost": false,
"notify_emergency_call": true,
"notify_license_limited": true,
"notify_trunk_call_limited": true
}Update notification settings.
The email server type.
Can be either:
SMTP: Use generic SMTP server.MS365Use Microsoft 365 email service.GMAILUse Google Gmail service.
SMTP server used for sending mails.
A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535. For TCP, port number 0 is reserved and cannot be used, while for UDP, the source port is optional and a value of zero means no port
80A Reply-To address is identified by inserting the Reply-To header in your email.
It is the email address that the reply message is sent
when you want the reply to go to an email address that is different than the From: address.
Username or email address.
Password for email account.
The authentication protocols.
Can be either:
DISABLE: Skip authentication mechanism.AUTO: Use auto-selected authentication algorithms by server (Currently only supports LOGIN and PLAIN).LOGIN: Use LOGIN authentication mechanism.PLAINUse PLAIN authentication mechanism.
AUTOPossible values: Whether to enable TLS/SSL.
trueWhether StartTLS is automatically enabled.
falseComma-separated list of email address that should receive notifications.
Allow up to 15 email addresses.
Notify via email when user registered.
falseNotify queue manager via email when SLA time has been breached.
falseNotify queue manager via email when callback has been made.
falseNotify queue manager via email when callback failed.
falseNotify queue Manager via email when call lost.
falseSend a notification email when emergency number dialed.
trueSend a notification email when license limit reached.
trueSend a notification email when trunk call limited reached.
trueOK
No content
Error
POST /api/tenant/notification HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 424
{
"type": "SMTP",
"server": "",
"port": 1000,
"reply_to": "",
"username": "example",
"password": "",
"auth": "AUTO",
"enable_tls_ssl": true,
"enable_starttls_auto": true,
"recipients": "",
"notify_user_registration": true,
"notify_queue_sla_breached": false,
"notify_queue_callback": false,
"notify_queue_callback_failed": false,
"notify_queue_call_lost": false,
"notify_emergency_call": true,
"notify_license_limited": true,
"notify_trunk_call_limited": true
}No content
Check email server configurations by sending testing email.
The recipient's e-mail address.
Mail subject.
Mail content.
OK
No content
Error
POST /api/tenant/notification/test_email HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"recipient": "",
"subject": "example",
"content": ""
}No content
List all of default email templates
OK
Error
GET /api/default_email_templates HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"name": "USER_CREATION",
"from": "",
"subject": "example",
"body": ""
}
]
}Get details of default template by name.
Name of the email template:
Can be either:
AUTH_RESET_PASSWORD: reset user password notification.AUTH_SIGN_IN_2FA: two factor authentication code notification.CALL_REPORT_COMPLETED: call report completed notification.CONFERENCE_INVITATION: meeting invitation notification.DISK_LOW: low disk notification.EMERGENCY_CALL: emergency call notification.LICENSE_LIMITED: license limited notification.QUEUE_CALLBACK: call queue callback notification.QUEUE_CALLBACK_FAILED: call queue callback failed notification.QUEUE_CALL_LOST: call queue call lost notification.QUEUE_SLA: call queue sla time reached notification.RECHARGE: recharge notification.SHARED_VOICEMAIL_RECEIVED: shared voicemail received notification.TRUNK_CALL_LIMITED: trunk call limited notification.TRUNK_CONNECTED: trunk connected notification.TRUNK_DISCONNECTED: trunk disconnected notification.USER_CREATION: user creation notification.VOICEMAIL_RECEIVED: received voicemail notification.
OK
Name of the email template:
Can be either:
AUTH_RESET_PASSWORD: reset user password notification.AUTH_SIGN_IN_2FA: two factor authentication code notification.CALL_REPORT_COMPLETED: call report completed notification.CONFERENCE_INVITATION: meeting invitation notification.DISK_LOW: low disk notification.EMERGENCY_CALL: emergency call notification.LICENSE_LIMITED: license limited notification.QUEUE_CALLBACK: call queue callback notification.QUEUE_CALLBACK_FAILED: call queue callback failed notification.QUEUE_CALL_LOST: call queue call lost notification.QUEUE_SLA: call queue sla time reached notification.RECHARGE: recharge notification.SHARED_VOICEMAIL_RECEIVED: shared voicemail received notification.TRUNK_CALL_LIMITED: trunk call limited notification.TRUNK_CONNECTED: trunk connected notification.TRUNK_DISCONNECTED: trunk disconnected notification.USER_CREATION: user creation notification.VOICEMAIL_RECEIVED: received voicemail notification.
Notification email from field.
Notification email subject field.
Notification email body.
Error
GET /api/default_email_templates/{name} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "USER_CREATION",
"from": "",
"subject": "example",
"body": ""
}List all of custom email templates
OK
Error
GET /api/custom_email_templates HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"name": "USER_CREATION",
"from": "",
"subject": "example",
"body": ""
}
]
}Create custom email template.
Name of the email template:
Can be either:
AUTH_RESET_PASSWORD: reset user password notification.AUTH_SIGN_IN_2FA: two factor authentication code notification.CALL_REPORT_COMPLETED: call report completed notification.CONFERENCE_INVITATION: meeting invitation notification.DISK_LOW: low disk notification.EMERGENCY_CALL: emergency call notification.LICENSE_LIMITED: license limited notification.QUEUE_CALLBACK: call queue callback notification.QUEUE_CALLBACK_FAILED: call queue callback failed notification.QUEUE_CALL_LOST: call queue call lost notification.QUEUE_SLA: call queue sla time reached notification.RECHARGE: recharge notification.SHARED_VOICEMAIL_RECEIVED: shared voicemail received notification.TRUNK_CALL_LIMITED: trunk call limited notification.TRUNK_CONNECTED: trunk connected notification.TRUNK_DISCONNECTED: trunk disconnected notification.USER_CREATION: user creation notification.VOICEMAIL_RECEIVED: received voicemail notification.
Notification email from field.
Notification email subject field.
Notification email body.
Created
NzAwNTUxOTA5NzczMTQ4MTYwError
POST /api/custom_email_templates HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"name": "USER_CREATION",
"from": "",
"subject": "example",
"body": ""
}{
"id": "xxxxxxxx"
}Get details of custom template by name.
Name of the email template:
Can be either:
AUTH_RESET_PASSWORD: reset user password notification.AUTH_SIGN_IN_2FA: two factor authentication code notification.CALL_REPORT_COMPLETED: call report completed notification.CONFERENCE_INVITATION: meeting invitation notification.DISK_LOW: low disk notification.EMERGENCY_CALL: emergency call notification.LICENSE_LIMITED: license limited notification.QUEUE_CALLBACK: call queue callback notification.QUEUE_CALLBACK_FAILED: call queue callback failed notification.QUEUE_CALL_LOST: call queue call lost notification.QUEUE_SLA: call queue sla time reached notification.RECHARGE: recharge notification.SHARED_VOICEMAIL_RECEIVED: shared voicemail received notification.TRUNK_CALL_LIMITED: trunk call limited notification.TRUNK_CONNECTED: trunk connected notification.TRUNK_DISCONNECTED: trunk disconnected notification.USER_CREATION: user creation notification.VOICEMAIL_RECEIVED: received voicemail notification.
OK
Name of the email template:
Can be either:
AUTH_RESET_PASSWORD: reset user password notification.AUTH_SIGN_IN_2FA: two factor authentication code notification.CALL_REPORT_COMPLETED: call report completed notification.CONFERENCE_INVITATION: meeting invitation notification.DISK_LOW: low disk notification.EMERGENCY_CALL: emergency call notification.LICENSE_LIMITED: license limited notification.QUEUE_CALLBACK: call queue callback notification.QUEUE_CALLBACK_FAILED: call queue callback failed notification.QUEUE_CALL_LOST: call queue call lost notification.QUEUE_SLA: call queue sla time reached notification.RECHARGE: recharge notification.SHARED_VOICEMAIL_RECEIVED: shared voicemail received notification.TRUNK_CALL_LIMITED: trunk call limited notification.TRUNK_CONNECTED: trunk connected notification.TRUNK_DISCONNECTED: trunk disconnected notification.USER_CREATION: user creation notification.VOICEMAIL_RECEIVED: received voicemail notification.
Notification email from field.
Notification email subject field.
Notification email body.
Error
GET /api/custom_email_templates/{name} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "USER_CREATION",
"from": "",
"subject": "example",
"body": ""
}Update custom email template.
Name of the email template:
Can be either:
AUTH_RESET_PASSWORD: reset user password notification.AUTH_SIGN_IN_2FA: two factor authentication code notification.CALL_REPORT_COMPLETED: call report completed notification.CONFERENCE_INVITATION: meeting invitation notification.DISK_LOW: low disk notification.EMERGENCY_CALL: emergency call notification.LICENSE_LIMITED: license limited notification.QUEUE_CALLBACK: call queue callback notification.QUEUE_CALLBACK_FAILED: call queue callback failed notification.QUEUE_CALL_LOST: call queue call lost notification.QUEUE_SLA: call queue sla time reached notification.RECHARGE: recharge notification.SHARED_VOICEMAIL_RECEIVED: shared voicemail received notification.TRUNK_CALL_LIMITED: trunk call limited notification.TRUNK_CONNECTED: trunk connected notification.TRUNK_DISCONNECTED: trunk disconnected notification.USER_CREATION: user creation notification.VOICEMAIL_RECEIVED: received voicemail notification.
Notification email from field.
Notification email subject field.
Notification email body.
OK
No content
Error
POST /api/custom_email_templates/{name} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"from": "",
"subject": "example",
"body": ""
}No content
Last updated
Was this helpful?