-
Hi everyone, The capability to use the webhooks is present in Arena and the respective endpoints defined in the specification. Still, I'm struggling to find any related documentation or examples for events that can be subscribed or typical use cases when and where these webhooks might be used. I would assume that the webhooks are used by "companion" apps and/or for synchronization as per the master-slave synchronization architecture of the system, but in case if we can create a custom listener of the events, that means bespoke external "companion" apps also can be created to extend the native functionality, which looks prominent enough. Do we have any examples of the webhooks usage or documentation about supported events and hook payloads? Could you please share any related insights regarding these capabilities? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @delros, You can configure Webhooks through the UI available at Arena will trigger a POST request to your endpoint. The payload is very minimal. It contains the Entity, ID and action. Then up to you to do further API calls depending on your use case:
Example:
The built-in master-slave sync is not using Webhooks but the purpose is to give the flexibility to anyone to integrate Arena in their own workflows. |
Beta Was this translation helpful? Give feedback.
-
Perhaps the easiest way to get in touch with Webhooks is to create one and point to https://webhook.site/ When you visit this page, you will get a dedicated webhook where you can forward actions from Arena. Then you will see the payload being sent to the webhook listener through their web interface. Use case can be for example: So to avoid this extra load (and extra delay to every single request), you can have 2 options.
Does it make sense? |
Beta Was this translation helpful? Give feedback.
Hi @delros,
You can configure Webhooks through the UI available at
/bracket/webhook/
. You can "listen" for different events (Insert, Update, Delete), on different entities (Fight, SportEvent, etc.), and get notified on the endpoint of your choice.Arena will trigger a POST request to your endpoint.
I'd suggest creating a Test Webhook for inspecting the payload using a service like https://webhook.site
The payload is very minimal. It contains the Entity, ID and action. Then up to you to do further API calls depending on your use case:
Example: