Example: Setting up Transformation Webhooks
In this example, we will walk through how you can configure webhooks to receive notifications when your transformations have finished running!
Prerequisites
-
Your API Key
-
Your Transform ID for the transformation you want to monitor
-
A webhook URL
-
A webhook auth key
Step 1: Create a Webhook
First, create a webhook by making the following API call:
Save the webhook_id
from the response for use in Step 2.
Step 2: Subscribe to Transform Completion Events
After creating the webhook, subscribe to transformation completion events using the following API call:
Required Replacements
Before making the API calls, replace the following placeholders with your actual values:
-
YOUR_API_URL
: Your Trellis API URL -
YOUR_API_KEY
: Your Trellis API authentication key -
YOUR_TRANSFORM_ID
: The ID of the transformation you want to monitor -
YOUR_WEBHOOK_ID
: The webhook ID received from Step 1
What Happens Next?
Once configured, you will receive webhook notifications at your specified endpoint whenever the specified transformation completes. The webhook will contain details about the completed transformation.