Use webhooks for real time messages

Webhooks are used to get real time guaranteed messages of ecosystem events such as state finalization, transfers, marketplace sales, and more from the platform.

First, register the webhook.

curl --location 'http://127.0.0.1:8080/v1/webhook' \
--header 'x-mythical-environment-id: 09fcc2a5-5204-44ef-a796-aca631c1f98a' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode '%7B%0A%20%20%22url%22%3A%20%22http%3A%2F%2Furl%2Fapi%2Fhook%22%2C%0A%20%20%22authorizationHeaderName%22%3A%20%22zombie%22%2C%0A%20%20%22authorizationKey%22%3A%20%22key%22%20%0A%7D='

Now, events from the platform can be handled.

Last updated