Send a push notification to a user or a group of users.
restPath
property.
/experiences/[experienceId]/[restPath]
sendPushNotification
call, add the restPath
property.
page.tsx
file with the path: app/experiences/[experienceId]/posts/[postId]/page.tsx
restPath
property.companyTeamId
field instead of the experienceId
when sending the notification.
companyTeamId
or the experienceId
when sending a
notification. Setting both will result in an error.userIds
field to filter the users who will receive the notification.
Whop will first apply either the experienceId
or the companyTeamId
filter and then apply the userIds
filter
Ensure that the userIds
array contains valid user IDs that are part of the specified experience or company team.
For example if you a building a bidding app you may want to alert the highest bidder if they were just outbid.