# AWX Microsoft Teams Webhook Notification Issue

**URL:** <https://forum.ansible.com/t/awx-microsoft-teams-webhook-notification-issue/2102>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [November 2, 2023, 9:41am UTC](https://forum.ansible.com/t/awx-microsoft-teams-webhook-notification-issue/2102 "2023-11-02T09:41:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom1](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tom1](https://forum.ansible.com/u/tom1)\
**Post date:** [November 2, 2023, 9:41am UTC](https://forum.ansible.com/t/awx-microsoft-teams-webhook-notification-issue/2102/1 "2023-11-02T09:41:31Z")

</div>

Hello,  
I’m experiencing an issue with sending notifications to a Microsoft Teams channel using a webhook connection. I received the following error: “Error sending webhook notification: 400.” Strangely, I can send messages to the channel through Mattermost, but I’m unable to do so via the webhook. I’m currently using the latest version of AWX (23.3.1). Could you please assist me in resolving this problem?

---

<div class="post-metadata">

**Author:** ![djyasin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/djyasin/32/114_2.png) [@djyasin](https://forum.ansible.com/u/djyasin)\
**Post date:** [November 3, 2023, 5:32pm UTC](https://forum.ansible.com/t/awx-microsoft-teams-webhook-notification-issue/2102/2 "2023-11-03T17:32:29Z")

</div>

Hello @tom1,  
We’re so excited for your first post! Welcome to Forum 😸

May we ask why you want to use webhook rather than Mattermost? We would like to gain a better understanding of the issue you have described.

Thank you for your time!

---

<div class="post-metadata">

**Author:** ![suhasramanand](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/suhasramanand/32/2897_2.png) [@suhasramanand](https://forum.ansible.com/u/suhasramanand)\
**Post date:** [April 16, 2024, 6:28am UTC](https://forum.ansible.com/t/awx-microsoft-teams-webhook-notification-issue/2102/3 "2024-04-16T06:28:08Z")

</div>

Hey @djyasin ,

I had the same issue  
I want to use webhook to configure adaptive cards for teams notifications for the job status notifications. For ex if a job fails I want to mention/tag and notify a particular user. How to achieve this?

I want to know if the 400 error is related to http\_headers if not what else might me causing this issue?

---

<div class="post-metadata">

**Author:** ![shrutebattlestargala](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/shrutebattlestargala/32/2029_2.png) [@shrutebattlestargala](https://forum.ansible.com/u/shrutebattlestargala)\
**Post date:** [November 19, 2024, 7:24pm UTC](https://forum.ansible.com/t/awx-microsoft-teams-webhook-notification-issue/2102/5 "2024-11-19T19:24:49Z")

</div>

@djyasin or @tom1 or @suhasramanand any luck on this? Im running into the same issues - i found a work around but it looks like garbage in our teams channel (flat text, no hyperlinks, etc)

---

<div class="post-metadata">

**Author:** ![dbrennand](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dbrennand/32/7830_2.png) [@dbrennand](https://forum.ansible.com/u/dbrennand)\
**Post date:** [June 25, 2025, 8:44pm UTC](https://forum.ansible.com/t/awx-microsoft-teams-webhook-notification-issue/2102/6 "2025-06-25T20:44:37Z")

</div>

I know this is an old issue but I recently configured a webhook notification in AWX and the test feature was failing. Apparently this is a known issue where the test functionality ignores the customised message body provided. [Notification webhook test feature sending its own format · Issue #8798 · ansible/awx · GitHub](https://github.com/ansible/awx/issues/8798)

---

<div class="post-metadata">

**Author:** ![shrutebattlestargala](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/shrutebattlestargala/32/2029_2.png) [@shrutebattlestargala](https://forum.ansible.com/u/shrutebattlestargala)\
**Post date:** [June 26, 2025, 1:58pm UTC](https://forum.ansible.com/t/awx-microsoft-teams-webhook-notification-issue/2102/7 "2025-06-26T13:58:56Z")

</div>

Hello - yes i have resolved the webhook notification feature for MS Teams. First - create your workflow in MS Teams:

Go to the channel you want to post in - click the 3 dots and select Workflows - search “Post to a channel when a webhook request is received”

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/8/80469f222953076beded77d9b0c0746e38ff4e7f.png)

Next - pick your team and channel:

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/b/b1fbb7b822463d52339b7c3b5b6b348da93bf1b8.png)

Create - C+P URL - click done

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/b/b9f63418d62bddfe0d09f7802dacbf978881bdaa.png)

Login to AWX - Notification type - Webhook - do your name and description- C+P the webhook url for Target URL and use HTTP POST Method

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/9/928c485b675579b3de99964d6048f6c0b46dce27.png)

This is what I am using for my payload as an example for the “Start Message Body”:

```auto
{
    "type": "message",
    "attachments": [
        {
    "contentType": "application/vnd.microsoft.card.adaptive",
    "content": {
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "type": "AdaptiveCard",
        "version": "1.4",
        "body": [
            {
                "type": "TextBlock",
                "text": "Ansible Playbook Status",
                "weight": "Bolder",
                "size": "Large"
            },
            {
                "type": "TextBlock",
                "text": "The playbook has completed execution.",
                "isSubtle": true
            },
            {
                "type": "TextBlock",
                "text": "Playbook Status: {{ job.status }}",
                "wrap": true
            },
            {
                "type": "TextBlock",
                "text": "Playbook Name: {{ job.name }}",
                "wrap": true
            }
        ],
        "actions": [
        {
            "type": "Action.OpenUrl",
            "title": "View Details",
            "url": "{{ url }}"
                }
            ]
        }
        }
    ]
}

```

Test a job - i use a simple win\_ping playbook for testing this type of stuff and it should work:

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/1/1c253ea6bcbe9b3fe87969a886469ea1a9a91380.png)

If something isnt working - I would check your connections in your workflow that you are using
