Retrieve Notification Settings
Retrieves the current notification settings of the project
HTTP Request
GET/api/settings/notifications
Authorization
Authorization
- Required: Yes
- Permission: Staff with NotificationsSettingsPermission or Admin
- Permission Code: 1036
- Authentication: Token authentication
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2
3# Retrieve notification settings
4response = requests.get('http://www.example.com/api/settings/notifications',
5 headers={'Authorization': 'Token <your_api_key>'}
6)
7print(response.json())1# Retrieve notification settings
2curl "http://www.example.com/api/settings/notifications" -H "Authorization: Token <your_api_key>"Response Fields
| Field | Type | Description |
|---|---|---|
| notifications_sms_notifier_data | Object | SMS notifier details with `id` and `name` fields |
| notifications_email_notifier_data | Object | Email notifier details with `id` and `name` fields |
| notifications_otp_code_len | Integer | Length of OTP codes (default: 5) |
| notifications_otp_ttl | Integer | OTP code time-to-live in seconds (default: 120) |
Notifier Data Object Structure
Both notifications_sms_notifier_data and notifications_email_notifier_data contain:
| Field | Type | Description |
|---|---|---|
| id | Integer | Notifier ID |
| name | String | Notifier display name |
Example Response
{
"notifications_sms_notifier_data": {
"id": 1,
"name": "melipayamak"
},
"notifications_email_notifier_data": null,
"notifications_otp_code_len": 5,
"notifications_otp_ttl": 120
}