Notifications
Get notifications for a specific user.
Args:
user (UserProfile): The user profile dependency.
organization (Organization): The organization dependency.
notification_service (NotificationService): The notification service dependencyReturns:
list[UserNotificationBase]: The list of notifications for the user.Authorizations
Responses
200
Successful Response
application/json
get
/notifications/GET /notifications/ HTTP/1.1
Host: api.stack-ai.com
Accept: */*
200
Successful Response
[]Delete a notification by its ID.
Args:
notification_id (str): The ID of the notification to delete.
user (UserProfile): The user profile dependency.
notification_service (NotificationService): The notification service dependency
created_at (datetime.datetime): The created at date of the notification.Returns:
dict: The response indicating the success of the deletion.Authorizations
Path parameters
notification_idstring · uuidRequired
Query parameters
created_atstring · date-timeRequired
Responses
200
Successful Response
application/json
Responseobject · ResponseDeleteNotificationNotificationsNotificationIdDelete
422
Validation Error
application/json
delete
/notifications/{notification_id}DELETE /notifications/{notification_id}?created_at=2025-11-02T02%3A09%3A14.262Z HTTP/1.1
Host: api.stack-ai.com
Accept: */*
{}Update a notification.
Authorizations
Path parameters
notification_idstring · uuidRequired
Query parameters
created_atstring · date-timeRequired
Body
anyOptional
Responses
200
Successful Response
application/json
Responseobject · ResponseUpdateNotificationNotificationsNotificationIdPatch
422
Validation Error
application/json
patch
/notifications/{notification_id}PATCH /notifications/{notification_id}?created_at=2025-11-02T02%3A09%3A14.262Z HTTP/1.1
Host: api.stack-ai.com
Content-Type: application/json
Accept: */*
{}Delete all notifications for a specific user.
Args:
user (UserProfile): The user profile dependency.
organization (Organization): The organization dependency
notification_service (NotificationService): The notification service dependencyReturns:
dict: The response indicating the success of the deletion.Authorizations
Responses
200
Successful Response
application/json
Responseobject · ResponseDeleteAllUserNotificationsNotificationsAllDelete
delete
/notifications/all/DELETE /notifications/all/ HTTP/1.1
Host: api.stack-ai.com
Accept: */*
200
Successful Response
{}Get users from organization by role.
Authorizations
Path parameters
notification_idstring · uuidRequired
Query parameters
role_namestringRequired
Responses
200
Successful Response
application/json
Responseobject · ResponseGetUsersFromOrgByRoleNotificationsNotificationIdPost
422
Validation Error
application/json
post
/notifications/{notification_id}/POST /notifications/{notification_id}/?role_name=text HTTP/1.1
Host: api.stack-ai.com
Accept: */*
{}Was this helpful?

