Forum Discussion

KevinChen0512's avatar
KevinChen0512
Copper Contributor
Mar 26, 2025

Issue with Downloading Teams Sticker via Graph API - HTTP 400 Bad Request

Hi all,

 

I am encountering an issue when attempting to download a sticker from Microsoft Teams using the Graph API. Below are the details of my request and the problem I am facing:

Issue Description:

  • I am using the following API format to download a sticker:
  • GET https://graph.microsoft.com/v1.0/teams/xxx/messages/yyy/hostedContents/zzz/$value
  • The request returns an HTTP 400 Bad Request response.
  • The error details are as follows:
  • {  "error": {    "code": "BadRequest",    "message": "Provided hosted content identifier is invalid."  }}
  • Upon decoding zzz part of the API request URL, I obtained the following information:
  • id=,type=1,url=https://us-prod.asyncgw.teams.microsoft.com/v1/url/content?url=https%3a%2f%2fstatic.wixstatic.com%2fmedia%2f4b00a4_e293905cf80f4ba4853c80a0a98dd748~mv2.png
  • From the decoded data, it appears that the id field is empty.
  • I suspect that this might be the reason why I am receiving the HTTP 400 Bad Request response.

Questions:

  • Has anyone encountered a similar issue when attempting to download a hosted sticker from Teams via the Graph API?
  • Is there a specific reason why the id field is empty in the decoded content information?
  • How can I resolve this issue and successfully retrieve the sticker content?

Any insights or guidance on resolving this issue would be greatly appreciated.

Thank you for your support.

 

Best regards,

Kein

4 Replies

    • DanielBrase1060's avatar
      DanielBrase1060
      Copper Contributor

      Hi Kevin,

      We are experiencing a similar issue. In our environment, with two teams, we encounter the same error when backing up Teams chats using Veeam Backup for Microsoft 365, which accesses the data via the Graph API. The first occurrence was on 07.03.2025 and the second on 28.03.2025 for the other team. Following your hint about stickers in the headline, I tried to back up a test team with a sticker in a chat but couldn't replicate the issue. The backup with the sticker was successful. Thus, the issue may not be exclusively related to stickers. Veeam support advised us to file a support case with Microsoft 365 Support, but we haven't done so yet. Have you been able to resolve the issue already?

      • KevinChen0512's avatar
        KevinChen0512
        Copper Contributor

        I have posted a reply earlier, but it seems the reply is missing. So I post the reply again as follows:

        Unfortunately, we are still experiencing this issue in our environment as well. We previously opened a support ticket with Microsoft, but they informed us that the problem falls outside their support scope and recommended that we post about it here instead. So far, we have not received any response or resolution.

Resources