(notifications)
Get notifications
from novu_py import Novu
import os
with Novu(
api_key=os.getenv("NOVU_API_KEY", ""),
) as novu:
res = novu.notifications.list()
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
request |
models.NotificationsControllerListNotificationsRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.NotificationsControllerListNotificationsResponse
Error Type | Status Code | Content Type |
---|---|---|
models.ErrorDto | 400, 404, 409 | application/json |
models.ValidationErrorDto | 422 | application/json |
models.APIError | 4XX, 5XX | */* |
Get notification
from novu_py import Novu
import os
with Novu(
api_key=os.getenv("NOVU_API_KEY", ""),
) as novu:
res = novu.notifications.retrieve(notification_id="<id>")
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
notification_id |
str | ✔️ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.NotificationsControllerGetNotificationResponse
Error Type | Status Code | Content Type |
---|---|---|
models.ErrorDto | 400, 404, 409 | application/json |
models.ValidationErrorDto | 422 | application/json |
models.APIError | 4XX, 5XX | */* |