Webhooks in Talend Management Console
Webhooks can trigger the execution of a Job task or plan based on calls from external applications.
- Do not submit credentials to a webhook trigger because it does not need any authentication.
- Keep the webhook URL in a secret place because anyone can use the URL to trigger your task.
- If authentication is required, consider to use an API instead of a webhook trigger.
You cannot add a webhook if you already had other trigger types. You can delete other triggers and add a webhook when editing the task/plan, or you can also copy the task/plan if you need both.
- type: media type of the payload taken from Content-Type header
- data: payload data
- application/xml
- application/json
- application/x-www-form-urlencoded
- text/plain
- text/xml
Payloads are processed as an array. The total payload size for Big Data Jobs must not exceed 5 kb.
- Window threshold: defines the number of calls to the service.
- Window duration (in seconds): defines the number of seconds after the first service call.
The first event to occur triggers the execution.
Example
If the window size is 2, during the time set in the Window threshold parameter two consecutive payloads are sent to the webhook endpoint:
{"param":"1"}
{"param":"2"}
[
{"data":"{"param":"1"}","type":"application/x-www-form-urlencoded"},
{"data":"{"param":"2"}","type":"application/x-www-form-urlencoded"}
]
job.ctx.params.passthrough=true
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!