Hello Webpushr Team,
We are facing issues while trying to send push notifications to specific segments using the /notification/send/segment API.
Even though we are assigning segments to users from the frontend using webpushr(“seg”, [“Sports”]), and we can see these as custom attributes under each user in the dashboard, we are getting the following error when triggering notifications via API:
{“status”:“failure”,“description”:“Segment is invalid or missing”}
We tried both sending the segment name (“Sports”) and the segment ID (552355), but both result in the same error.
We are not able to clearly see which users belong to which segments in the dashboard either, even after assigning segments on the frontend.
Could you please clarify:
How to correctly map frontend segments (custom attributes) to backend segments used in the send API?
Should we be using segment names or IDs in the API payload?
How can we confirm in the dashboard that a user is properly assigned to a segment?
Thank you for your support.