API v2: Safe Notifications 🆕¶
Data Structures¶
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only. Unique safe identifier. |
|
|
string |
Read-only. Unique user identifier. |
|
|
string |
Read-only. Username for notification recipient. |
|
|
string |
Read-only. User domain. |
|
|
string |
Read-only. User email address. |
|
|
number |
Read-only. Email notification count or status. |
|
|
number |
Read-only. Push notification count or status. |
|
|
object-array |
Read-only. User roles related to safe notifications. |
|
|
string-array |
Read-only. Hidden attribute. Array of role names. |
|
|
string-array |
Read-only. Hidden attribute. Array of role identifiers. |
Retrieve Available Attributes of the SafeNotificationUsersModel¶
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get Safe Notification Settings for Users¶
Request
Method |
|
Path |
|
GET /api/v2/safe/<safe_id>/notification_user
Example Request
curl -s -k -X GET \
-H 'Authorization: <token>' \
'https://10.31.135.179/api/v2/safe/2/notification_user'
Response
{
"result": "success",
"safe_notification_user": [
{
"safe_id": "2",
"user_id": "user456",
"user_name": "security.admin",
"user_domain": "internal.com",
"user_email": "security.admin@internal.com",
"email_notifications": 5,
"push_notifications": 3,
"roles": [
{
"id": "role789",
"name": "Safe Administrator"
}
]
}
]
}