Notifications API
Base path: /api/v1/user/. Python: client.notifications.
In-app notifications
| Method | Path | Python | Purpose |
|---|---|---|---|
GET | /notifications/ | notifications.list(is_read=None, page=None, page_size=None) | Your notifications |
GET | /notifications/unread-count/ | notifications.unread_count() | Number of unread notifications |
POST | /notifications/{id}/read/ | notifications.mark_read(id) | Mark one read |
POST | /notifications/read-all/ | notifications.mark_all_read() | Mark every unread one read |
POST | /notifications/mark-unread/ | notifications.mark_unread([id, ...]) | Mark the given ones unread again |
DELETE | /notifications/{id}/ | notifications.dismiss(id) | Dismiss one |
Email settings
| Method | Path | Python | Purpose |
|---|---|---|---|
GET | /notification-settings/ | notifications.settings() | Current email preferences |
PATCH | /notification-settings/ | notifications.update_settings(**fields) | Change any of the fields below |
POST | /notification-settings/test-email/ | notifications.send_test_email() | Send a test email to yourself; answers 202 |
The settings are booleans: email_notifications_enabled, conversion_complete,
conversion_failed, storage_warnings and marketing_emails_enabled. The test email is
limited to one per minute per user; a second request inside that minute answers 429.
from indox_client import Indox
with Indox() as client:
print(client.notifications.unread_count())
client.notifications.update_settings(conversion_complete=False)