Recent searches
No recent searches
Opening authenticated image via API
Posted Jul 23, 2024
Our Zendesk application connected to Twitter and sometimes our customer send image via Twitter DM. In Zendesk the image url will be shown as https://{subdomain}.zendesk.com/twitter/proxy/authenticated_image?conversion_id_str={conv_id}
We try to get the image by API call (to automate things). We already use Basic Authentication with user and password. But we always get this response saying that we are unauthenticated. If we try it in browser, we are able to open the image. Do you have solution for this Zendesk team? Thanks

0
2
2 comments
Immanuel
I also have similar issue. Is there any update related to this issue? Thank you
0
Oscar Mejias
The API endpoint you are trying to call is not an existing Zendesk API endpoint - to call it, the user that calls it, needs to be authenticated using the usual cookie authentication method.
DM images are private and require authorisation, so in order to show them, we essentially log into Twitter on the user’s behalf, download it and forward it on. In order to do that, you need to be logged into Zendesk.
I hope this helps!
0