Skip to main content
Is there a way to send a metadata object in the same field that it is sent if you manually add a "custom metadata" object in a push notification campaign, but through the api instead of something that is static?
Additionally, where does the metadata field on the /api/push/target go after you make the request?
Hello Dylan,

The metadata field in that API call is to be passed back via system webhooks. Not used for rendering.

I'm sorry but I am not following your first question, do you have a sample JSON body you are looking to send over? Maybe that would help.

Thanks!
Brian
What does passed back via system webhooks mean in this case? Passed back to where?

The JSON body that I'm looking to send is essentially something like

```
{
"userId": <userId>
}
```

where `<userId>` is a dynamically populated value (per request to `/api/push/target`).
Passed back to your data warehouse, so the content isn't used for rendering the message, just used for data storage where ever you would like.

You can definitely pass that field, userID in your metadata field. It would be the same as the recipientUserId field. But if you would like to include it in the metadata as well that would work just fine!

Reply