evalinkdocs

Webhooks

Let any external system raise an alarm in evalink talos by calling a webhook URL.

ReferenceAPI: webhooks — Overview

The webhooks integration lets any third-party system — an alarm panel, a sensor, a script, or another cloud service — raise an alarm in evalink talos with a plain HTTP call. Each webhook you configure gets a unique, secret URL of the form https://talos.evalink.io/incoming/<token> (or .../periodic/<token> for heartbeat webhooks). Calling that URL creates an alarm on the device the webhook is attached to, using default values you configured plus any fields the caller supplies. There are two kinds of webhooks: a standard webhook creates one alarm per call, while a periodic (heartbeat) webhook instead expects to be called regularly and creates an alarm automatically if the calls stop arriving — a dead-man's switch. Webhooks are configured per company and, optionally, per device from the integration's settings; the resulting alarms then flow through the normal alarm pipeline like Alarm records.

ReferenceAPI: webhooks — Authentication and verifying a delivery

Each webhook is authorized by the secret token embedded in its URL; there is no separate API token or OAuth header requirement for /incoming or /periodic calls. Optionally, a webhook can require HTTP Basic authentication in addition to the token: if authentication is enabled, every call to /incoming/<token> (including its /web and /web-trigger variants) must carry an Authorization: Basic header matching the webhook's configured username and password, or the call is rejected with 401 Unauthorized and a WWW-Authenticate: Basic realm="urn:talos" header; periodic calls are not subject to this Basic-auth check. To verify that a delivery reached evalink talos, check the response: a successful call to /incoming/<token> returns the created alarm as JSON (its id can be looked up through Alarm), and a successful call to /periodic/<token> returns the next timeout value. Every alarm created from a webhook also carries a web-hook-id header identifying the source webhook, which lets you confirm in the alarm record which webhook triggered it. Because evalink talos runs across multiple regions, a token that belongs to a webhook hosted in another region is transparently proxied to the owning region and the response mirrors what that region returned — no client-side retry or region handling is required.

ReferenceAPI: webhooks — Errors, retries and troubleshooting

Calls fail with the following statuses:

Status Cause
400 Bad Request Webhook disabled; the webhooks integration disabled for the company; wrong endpoint used for the webhook's type (periodic vs standard); missing alarmCode with no default configured; a header entry without a :; periodic call to a webhook without required interval configuration
401 Unauthorized Basic authentication required but missing or incorrect
404 Not Found Unknown or revoked token
406 Not Acceptable The alarm was built successfully but rejected by company alarm settings

Periodic calls (/periodic/{token}) are automatically retried by the server up to 3 times if handling fails unexpectedly, except when the failure is a bad-request or unknown-token error — those are never retried and are returned immediately, so retrying a call that already failed with 400/404/401/406 will not help; fix the webhook configuration or the caller's credentials first. Because file attachments are processed after the alarm is created and their failures are only logged server-side, a missing attachment on an otherwise successful call should be diagnosed by checking file size (5 MB total per call) and content type rather than by resending the same request. If a caller consistently gets 404 for what looks like a valid token, confirm the webhook has not been deleted or recreated (which changes its token) in the integration's settings.