Send alarms with content using webhooks and header attachments
How to use webhooks with header attachments to interact with evalink talos in a more sophisticated way.
As we mentioned in the previous page, a webhook is a mechanism whereby an entity on the web (e.g. a client) can notify another entity on the web (e.g. a server) when a new event that might be of interest to the other side has just occurred.
evalink talos allows you to create and send more sophisticated webhooks to interact with the platform.
The Webhooks integration allows users to configure their webhook URLs further and transmit content to evalink talos via attachment headers. The type of the header can be a URL, an image, a widget etc.
The structure of such a webhook is displayed below:
https://talos.evalink.io/api/webhook-integration/incoming/
<webhookId>
?header=attachment.
<type>
:
<content>
https://talos.evalink.io/api/webhook-integration/incoming/<webhookId> is the URL/endpoint for a particular webhook, generated by evalink talos, as it is displayed here.
<type> is one of the following options:
URL
image
message
verification
<content> is the relevant content for each type, e.g. the desired URL or message for the operator.
Please refer to the examples displayed below for more details.
Example 1 - Webhook with URL in its attachment header
The above webhook, when invoked, will generate an alarm with the website evalink.io, as displayed in the picture below.
Example 2 - Webhook with an image in its attachment header
Example 3 - Webhook with a message in its attachment headers
Example 4 - Webhook with multiple URLs in its attachment headers
The above webhook, when invoked, will generate an alarm with the websites evalink.io and evalinklive.com, as displayed in the picture below.
Example 5 - Webhook with multiple images in its attachment headers
Example 6 - Webhook with multiple messages in its attachment headers
The above webhook, when invoked, will generate an alarm with the websites evalink.io and evalinklive.com, as displayed in the picture below.
It is important to note that evalink talos de-duplicates the supplied resources.
This means that, for example, when you supply the same stream twice, it will show-up only once in the incoming alarm.
Last updated