Microsoft Teams

API Docs

Post a webhook alert into a Microsoft Teams channel.

Motion alert Power supply alert

You will first need to WebHook enable the channel. This process creates the HTTP server URL to enter into the Meraki Dashboard.

Template

  • body.liquid
  • HTTP Server URL: https://your-domain.atlassian.net/rest/api/2/issue/createmeta

body.liquid


{
    "@type": "MessageCard",
    "@context": "https://schema.org/extensions",
    "summary": "{{organizationName}}",

    "sections": [{
        "activityTitle": "{{organizationName}}",
        "activitySubtitle": "{{networkName}}",
        {% if alertData.imageUrl %}"images": [{"image":"{{alertData.imageUrl}}"}],{% endif %}
        "facts": [
    {
            "name": "When",
            "value": "{{occurredAt}}"
    },
        {
            "name": "Device",
            "value": "{{deviceName}}"
        },
        {
            "name": "Alert",
            "value": "{{alertType}} - {{alertLevel}}"
    }{% unless alertData.imageUrl %},
    {
            "name": "",
            "value": "{{alertData | json_markdown}}"
    }{% endunless %}],
    "markdown": true
  }],
    "potentialAction": [{
        "@type": "OpenUri",
        "name": "Org",
        "targets": [{"os": "default", "uri" : "{{organizationUrl}}"}]
    },
    {
        "@type": "OpenUri",
        "name": "Network",
        "targets": [{"os": "default", "uri" : "{{networkUrl}}"}]
    },
    {
        "@type": "OpenUri",
        "name": "Device",
        "targets": [{"os": "default", "uri" : "{{deviceUrl}}"}]
    }]
}