Skip to main content

Webhooks

info

Webhooks empowers your application with real-time notifications when key moments happen on papergames.io.

What are Webhooks?

You may have come across the term "webhooks" in your application settings and wondered about their utility. In essence, the answer is likely to be affirmative.

Webhooks serve as a mechanism for applications to autonomously dispatch messages or data to other applications. This is exemplified by instances such as PayPal informing your accounting application about client payments, Twilio directing phone calls to your designated number, and WooCommerce delivering notifications about new orders via Slack.

In essence, webhooks provide a straightforward means for your online accounts to communicate with each other, automatically triggering notifications when new events occur. Familiarity with webhooks is often crucial if you intend to enable the automatic transmission of data from one application to another.

Why use Webhooks

When building papergames.io integrations, you might want your applications to receive events as they occur in your papergame.io's games, so that your backend systems can execute actions accordingly.

To enable webhook events, you need to register webhook endpoints. After registering them, papergames.io can push real-time event data to your application’s webhook endpoint when events happen during your games. papergames.io uses HTTPS to send webhook events to your app as a JSON payload.

Receiving webhook events are particularly useful for listening to asynchronous events, such as when a game has started or has finished.

info

If you need a specific type of event that's not supported, please reach out and we will do our best to integrate it.