Added foreignId to NotificationApi