© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
NovuN
Novu•15mo ago•
13 replies
R4YL

Custom data/payload

Hi guys,
I'm trying to send more data such as title or anything custom but it's seems like it's not included in the payload. (In-app notifixations)

 payload: {
          message: `You got a new follower ${myUsername}`,
          redirect: `/users/${myUsername}`,
          ...custom_data
        },

  const data = {
    to,
    payload,
  };


  await client.trigger(notification.workflowId, data);
 payload: {
          message: `You got a new follower ${myUsername}`,
          redirect: `/users/${myUsername}`,
          ...custom_data
        },

  const data = {
    to,
    payload,
  };


  await client.trigger(notification.workflowId, data);


When fetching the notifications with
useNotifications
useNotifications
I only get
message
message
and
redirect
redirect
.

And if I add something in the Editor it's concatenated in
message
message
.
Also when adding Avatar the notification returns
avatar: undefined
avatar: undefined
.

How do I add more custom data?

I'm using:
"@novu/node": "2.0.5"
"@novu/react": "2.6.2"

Thanks in advance!
Screenshot_2024-12-11_at_16.04.19.png
Novu banner
NovuJoin
Open Source Notification Infrastructure Community by Novu
4,169Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

empty data payload on fcm
NovuNNovu / 💬│support
4y ago
Sending custom payload via API
NovuNNovu / 💬│support
11mo ago
Payload.data isn't passed to FE
NovuNNovu / 💬│support
2y ago