Skip to main content

Configure webhooks in TGManager

Webhooks are set up from TGManager (Trainingym's management back office). You choose which events to receive and where to deliver them.

Steps​

  1. Enable the event types you want to receive.
  2. Configure the destination endpoint (your public webhook URL).
  3. Save. Trainingym will start delivering the enabled events to your endpoint.

Using a single endpoint​

You can point every event type at one endpoint and branch on the eventType field inside the payload. This is the recommended setup for most integrations.

Adding a credential to the URL​

You may append a query string to your endpoint URL, and it will be sent on every delivery:

https://yourapp.com/webhooks?apiKey=YOUR_KEY

Use this to authenticate the caller on your side.

warning

The query string is stored but hidden in endpoint previews to avoid exposing secrets. Avoid putting long-lived secrets in the URL if your infrastructure logs full URLs — prefer a value you can rotate.

What a delivery looks like​

Trainingym sends an HTTP POST with a JSON envelope. See How webhooks work for the envelope format and each event's payload.