Forum Discussion

alfredsee's avatar
alfredsee
Icon for Microsoft rankMicrosoft
Nov 01, 2022
Solved

Message sent via Teams Incoming Webhooks isn't showing in the Teams channel

Hi, I just noticed that I have been unable to send messages to a Teams channel via the Teams Incoming Webhooks URL. The following is the CURL request I tried:

curl --location --request POST 'https://microsoft.webhook.office.com/webhookb2/dc277ec7-0870-447f-b663-9a3b93ae8143@72f988bf-86f1-41af-91ab-2d7cd011db47/IncomingWebhook/<masked/>' \
--header 'Content-Type: application/json' \
--data-raw '{"text": "Hello World"}'

Whenever I send the request, I receive the following 200 response without additional info:

{
    "version": "1.1",
    "content": {
        "headers": [
            {
                "key": "Content-Type",
                "value": [
                    "text/plain; charset=utf-8"
                ]
            }
        ]
    },
    "statusCode": 200,
    "reasonPhrase": "OK",
    "headers": [],
    "trailingHeaders": [],
    "requestMessage": null,
    "isSuccessStatusCode": true
}

Still, the message isn't showing up in the target Teams channel. Could you advise what might have gone wrong?

Thanks.


Best regards,
Alfred See

  • Meghana-MSFT's avatar
    Meghana-MSFT
    Nov 01, 2022

    alfredsee - We tried this at our end in following ways and it has worked fine, can you please let us know if you are doing it differently?

    1. Powershell :  
    2. Postman: We imported the above mentioned curl command in postman and it is also working fine.
     
     
     

     
     

     

     

3 Replies

    • Meghana-MSFT's avatar
      Meghana-MSFT
      Bronze Contributor

      alfredsee - We tried this at our end in following ways and it has worked fine, can you please let us know if you are doing it differently?

      1. Powershell :  
      2. Postman: We imported the above mentioned curl command in postman and it is also working fine.
       
       
       

       
       

       

       

      • alfredsee's avatar
        alfredsee
        Icon for Microsoft rankMicrosoft

        Meghana-MSFT Hi, I can confirm that it works now, must have been a transient issue... thanks for looking into it!

Resources