Skip to content

Mark Notifications Read

Mark one notification — or all of them — as read. Both operations are idempotent.

POST /v1/notifications/:id/read
POST /v1/notifications/read-all

Mark one read

POST /v1/notifications/:id/read
json
{
  "data": {
    "message": "Marked as read"
  }
}

Returns 404 when the notification doesn't exist or belongs to another user.

Mark all read

POST /v1/notifications/read-all
json
{
  "data": {
    "message": "All marked as read"
  }
}

Example

bash
curl -X POST "https://api.packedge.dev/v1/notifications/read-all" \
  -H "Authorization: Bearer pk_your_api_key"