Mark all notifications as read
Marks all unread notifications as read for the current user.
What happens:
- All unread notifications for the current user are marked as read
- Returns the count of notifications that were marked as read
- Useful for bulk “mark all as read” functionality
Response includes:
success: Boolean indicating operation successcount: Number of notifications marked as read
POST
/account/notifications/read-allAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredResponses
200Number of notifications marked as read
countnumberNumber of notifications marked as read
successboolean401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/account/notifications/read-all" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/account/notifications/read-all", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.post(
"https://leadtime.app/api/public/account/notifications/read-all",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"count": 5,
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions