Teams bot is not able to access the image captured through camera having url : "https://smba.trafficmanager.net/in/..../v3/attachments/....../views/original"

Raghunatha N S 20 Reputation points
2025-03-22T19:49:13.3366667+00:00

Hi,
We are building a Teams bot for text extraction from image and get the insights from lLM model.
here we are able to attach images from the folders into the teams bot and get the details.

But whenever we capture the image from camera and send to the bot it throws and 401 error -failed to download an image

The url of the camera image looks something like this : https://smba.trafficmanager.net/in/2d19e040-1fe5-40f1-84d9-0ea793303bc4/v3/attachments/0-sin-d3-e929023167381ad73d2d26232e05e71c/views/original

Tried with creating access tokens,
also API permissions are enabled in app registrations, but NO success.image

Can anyone, help us in understanding the settings in accessing these URLs

Microsoft Teams | Development
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.