Examples: Rule triggered Webhook messages - TeamViewer Support
<main> <article class="userContent"> <p><br></p><p>A <strong>Webhook </strong>can be thrown when a Rule was triggered. Webhooks are sent via <strong>HTTP POST</strong> message to a specified url. The message contains <strong>JSON </strong>documents.</p><p>The examples below show Webhook message examples for your reference.</p><p><br></p><h3></h3><h3 data-id="webhook-endpoint-confirmation">Webhook Endpoint Confirmation</h3><pre class="code codeBlock" spellcheck="false" tabindex="0">{ "Type": "ChannelConfirmation", "Message": "You have received this request because your webhook URL has been added to the TeamViewer IoT notification channel list. To confirm this channel visit the ConfirmationURL included in this message" , "ConfirmationURL": "https://mywebhook.com/confirmation/eyJ0aW1lU3RhbXAiOjE1Mjk0NzU1OTQwNzYsImNoYW5uZWxOYW1lIjoidGVzdCIsImNoYW5uZWxUeXBlIjoxLCJ1c2VySWQiOiI1YjI3YjI5ZGY2N2VjM2Y1MTAxMDUxNjkiLCJjaGFubmVsSWQiOiI1YjI5ZjIwYTMzNmJjNzUzZjA5M2Q1YWMiLCJ0YXJnZXQiOiJodHRwczovL3dlYmhvb2suc2l0ZS8zMjBmZTQ1Mi1kNzZmLTQ0YTUtYWFiZC04MDAzYTIyZTRlZWEifQ==" } { "Type": "ChannelConfirmationResponse", "Message": "Webhook channel has been successfully confirmed", "Timestamp": 1529475719718 } { "Type": "ChannelConfirmationResponse", "Message": "Webhook channel has already been confimred.", "Timestamp": 1529475731790 } </pre><p><br></p><h3 data-id="-1"></h3><h2 data-id="rule-met">Rule Met</h2><pre class="code codeBlock" spellcheck="false" tabindex="0"><pre class="wp-block-syntaxhighlighter-code">{ "StartTime": 1501068864000, "ruleName": "Default alarm policy", "condition": "raspberrypi.dht22.temperature < 3", "consecutiveChecks": 4, "values": { "raspberrypi.dht22.temperature": 2 } }</pre> </pre><p><br></p><h3 data-id="-2"></h3><h2 data-id="rule-recovered">Rule Recovered</h2><pre class="code codeBlock" spellcheck="false" tabindex="0"><pre class="wp-block-syntaxhighlighter-code">{ "endTime": 1501068864000, "duration": "2 hour(s) 45 minute(s)", "ruleName": "Default alarm policy", "condition": "raspberrypi.dht22.temperature < 2", "consecutiveChecks": 4, "values": { "raspberrypi.dht22.temperature": 5 } }</pre> </pre><p><br></p><h3 data-id="-3"></h3> </article> </main>