monica
monica copied to clipboard
Access avatars and photos through API
Is your feature request related to a problem? Please describe. The API is already able to provide links and information about photos related to a contact and also provide a link to their avatar, yet it doesn't seem possible yet to access these links and download the images through the API.
Describe the solution you'd like I'd like to be able to download avatars and images through the API. So far when accessing an image (i.e through https://monica.instance/store/photos/photo.jpeg) with a Bearer token, you're redirected to the login page. I'd like to have access to the image with a Bearer token.
Same issue here. Trying to use https://www.davx5.com/ to sync my contacts. However, the images can't be downloaded due to the redirect to the login page.
There' already an API endpoint to upload an avatar (PUT /contacts/{contact}/avatar
) as detailed in an issue here.
It would make sense to add a GET option to that endpoint.
I think a base64 representation of the image would be the easiest way to obtain the information.
This has been a bit of a showstopper for one of my projects to create a relationship graph between my contacts and have pictures on all of the nodes. One of the more requested features of Monica is the creation of such a graph. This feature would ease the pressure by allowing third party developers to do it.