# Error sending a notification to a contactId

**URL:** <https://forum.wixstudio.com/t/error-sending-a-notification-to-a-contactid/63735>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [October 20, 2024, 2:09pm UTC](https://forum.wixstudio.com/t/error-sending-a-notification-to-a-contactid/63735 "2024-10-20T14:09:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kleh](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@Kleh](https://forum.wixstudio.com/u/Kleh)\
**Post date:** [October 20, 2024, 2:09pm UTC](https://forum.wixstudio.com/t/error-sending-a-notification-to-a-contactid/63735/1 "2024-10-20T14:09:10Z")

</div>

Hi all, I want to use [Notify | Velo](https://dev.wix.com/docs/velo/api-reference/wix-notifications-v2/notifications/notify) to send a notification to a site member, but I get this error: “Error sending notification: message: Not Found details: applicationError: description: Not Found code: NOT\_FOUND data: {}”

This is the backend code:

```javascript
import { Permissions, webMethod } from "wix-web-module";
import { notifications } from "wix-notifications.v2";
import * as wixAuth from 'wix-auth';

export const notifyWithElevation = webMethod(
  Permissions.SiteMember,  
  async (body, channels, options) => {
    try {
      const elevatedNotify = wixAuth.elevate(notifications.notify);
      const result = await elevatedNotify(body, channels, options);
      return result;
    } catch (error) {
      throw new Error("Notification failed");
    }
  }
);

```

This is the frontend code:

```javascript
$w.onReady(function () {

    const body = "This is the body of the notification";
    const channels = ["Browser", "Mobile"];

    const options = {
        title: "Notification Title",
        toContacts: {
            contactIds: ["XXXXXXX-2115-444e-a332-XXXXXXXX"],
        },
        targetUrl: "https://example.com"
    };

    notifyWithElevation(body, channels, options)
        .then((result) => {
            console.log("Notification sent successfully", result);
        })
        .catch((error) => {
            console.error("Notification failecsfsd", error);
        });
});

```

I also tried sending it “toSiteContributors”, same error. Can you help? Thank you so much!

---

<div class="post-metadata">

**Author:** ![Baksheesh](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@Baksheesh](https://forum.wixstudio.com/u/Baksheesh)\
**Post date:** [December 17, 2024, 5:07pm UTC](https://forum.wixstudio.com/t/error-sending-a-notification-to-a-contactid/63735/2 "2024-12-17T17:07:44Z")

</div>

I’m using almost identical code, but I get a different backend error when run on both preview and live site, and no notification of course:

**“message: Not Found details: applicationError: description: Not Found code: NOT\_FOUND data: {}”**

…

Frontend\>\>

```javascript
import { notify } from "backend/createNotification.web";

//...
  const body = "Notification text";
  const channels = ["Browser", "Dashboard", "Mobile"];
  const options = {
    title: "Notification Title",
    toContacts: {
      contactIds: ["22ed90a5-4732-4200-a403-7e4f3e730cb5"],
    },
      targetDashboardPage: "Home"
  };

  notify(body, channels, options)
  .then((result) => {
    console.log("Notification sent successfully ", result);
  })
  .catch((error) => {
    console.log("Notification failed ", error);
  });
}

```

Backend\>\>  
(file is named createNotification.web.js.)

```javascript
import { notifications } from "wix-notifications.v2";
import { webMethod, Permissions } from "wix-web-module";
import { elevate } from "wix-auth";

const elevatedNotify = elevate(notifications.notify);

export const notify = webMethod(
  Permissions.Anyone,
  async (body, channels, options) => {
    try {
      const result = await elevatedNotify(body, channels, options);
      return result;
    } catch (error) {
      console.error(error);
    }
  },
);

```

---

<div class="post-metadata">

**Author:** ![Baksheesh](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@Baksheesh](https://forum.wixstudio.com/u/Baksheesh)\
**Post date:** [September 12, 2025, 12:27pm UTC](https://forum.wixstudio.com/t/error-sending-a-notification-to-a-contactid/63735/3 "2025-09-12T12:27:50Z")

</div>

Back in January Wix Support admitted to me that there was indeed a problem with the Notifications.V2 API and they would look into it. Have not heard back, but today when I took another crack at this code I noticed that the Notifications.V2 API documentation has been removed entirely.

If anybody has found a way of sending a notification to a specific member (and so it appears in their member Notifications page and lights up the Wix member notice bell), please share your code.
