Introducing Webhooks for External Notifications

For me it isn’t difficult. But for others it may be. And people don’t want to open up ports on their computers I would assume.

1 Like

That was also what I was trying to say. Especially if your game gets large.

1 Like

We will provide an update soon enough as a follow up to help assist with the process of deleting user data,
GDPR is only the one use case supported as of now. The idea is to receive notifications for other use cases in the future in the communication channels of your choice or also cases which need automation.

8 Likes

Yes an API call still has to be made. We are working on a follow up to assist with this process.
This is a first step towards helping in the process of automating the GDPR requests.

6 Likes

The message gets retried a few times. However, if there is a constant failure response then we drop the message.

3 Likes

Is it possible to use this WebHook API as a replacement for WebSockets? A WebSocket client would unleash a ton of creativity, even if it shares the limit of 500 HTTP requests per minute per server.

It would help me fully support Guilded’s API, for example.

5 Likes

Could the documentation page be expanded with that, and what is considered an OK response (I’d assume any 2xx status code response).

It currently only states the following requirements:

  • It must be publicly accessible for handling requests.

  • It can handle POST requests.

  • It can respond to the request with a 2XX response within 5 seconds.

  • It can handle HTTPS requests.

But nothing is stated about the retry policy, (how many times, at what interval, etc)

5 Likes

So its basically just HTTP service??

The main purpose of webhooks is not limited to the GDPR use case. The purpose is to receive notifications on other platforms which support incoming webhooks of their own and for use cases where automation is possible.
GDPR is the first use case - but we would provide support for many more notification types in the future.
Webhooks are a way to receive notifications on external servers.

5 Likes

I’ll look into seeing if we can add this, thanks for flagging it!

4 Likes

Great to see that Discord does work. I was wondering as they banned requests from Roblox servers if it would work on Discord.

1 Like

You can configure incoming Webhook URLs on platforms like Discord, Slack, Guilded directing messages to a channel. And provide that incoming Webhook URL in the URL field of the Webhook configuration. The notifications that we send will then be received as a message on these platforms like Discord, Slack and Guilded.
Additionally, you could also setup your own http service which can receive the webhook message in JSON format which is more structured and can be used for automation.

4 Likes

Also on the topic of retries still, do subsequent requests include a header indicating how often the webhook will still be retried in the future?
For example a Retry-Count: x where X is the number of retries still attempted in the future?

Use-case: My server fails several times in a row and the last possible attempt fails too.
Ideally there’d be a way to indicate from the request that it’s the last retry, so that I could send an e-mail to myself or something else to indicate the automated webhook failed and that I have to take manual action.

2 Likes

No. HTTP service lets you send requests to an endpoint/API from your Roblox experience. What this update allows us to do is make it so when a trigger is activated it will send a webhook to our chosen webhook link.

1 Like

I take it that when the webhook either points to Discord, Guilded or Slack that you already modify the webhook body to the platform it’s relevant structure.
And with any other domain the body structure as stated in the documentation is sent?

This is only an opt in feature. This is not enabled by default.

1 Like

I really like this update as it will allow me to easily be able to see things that before I would have to check Roblox for.

What other notifications plan to be added? Some cool ones possibly could be when somthing happens in a roblox group (the auto log).

2 Likes

Yes when the endpoints are pointing to Discord, Slack and Guilded the webhook message is modified.
However when the endpoint provided is an http service the webhook message sent is a more structured data.

Will there be any chance or plans in the future we can choose how we want them to be modified/sent without having to create our own server and send the Webhook to something such as Discord ourselfs?

You can technically do this yourself.

There are services like Zapier which are end-to-end integration tools.
They can take an incoming webhook, grab certain fields from the data structure and restructure the request and send them out to another webhook.