question

brendan avatar image
brendan asked

Dynamic tokens in webhooks

Question from a developer:

Is it possible to include dynamic tokens such as current Player ID in the webhooks?

webhooks
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Webhooks in PlayStream (Analytics->Webhooks) automatically send the complete body of the PlayStream event to your endpoint, including all parameters. You can see the parameters for events in the PlayStream docs, here: https://api.playfab.com/playstream/events. If you need custom data, you can use WritePlayerEvent to create the event, and the "Custom event name" selection in the webhook configuration, with your event's actual name, to generate a webhook to your server.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.