APIs & Integrations

mahalakshmi5119
Member

Profile photo is not retrieved with User API

Hi Team , 

I tried to get the profile photo  or photo url for user using rest api .But no rest api found for getting profile photo for user . Can you help me to resolve this ? 

0 Upvotes
3 Replies 3
Willson
HubSpot Employee
HubSpot Employee

Profile photo is not retrieved with User API

Hi @mahalakshmi5119 


I've linked a post that is somewhat relevant here: https://community.hubspot.com/t5/APIs-Integrations/Create-a-user-using-the-API/td-p/227311

 

But to clarify we do not have any endpoints currently that interact with the creation/update of users and so this type of information will not be available. 

 

The only means of obtaining images stored in the portal is via the Files COS endpoint found here: https://developers.hubspot.com/docs/methods/files/get_files_file_id

This endpoint allows you to fetch the metadata for any files stored in your File Manager and will provide a URL for which you can use to access them.

 

I hope this helps!

Product Manager @ HubSpot
0 Upvotes
mahalakshmi5119
Member

Profile photo is not retrieved with User API

Thanks @Willson . I need a rest api for getting profile photo for user , not create /update user api .

For File SOS endpoint , we are able to get file using file id . But how do we get file id for user profile photo? 

FYI : We didnt get any data related to photo using getting account details api - https://developers.hubspot.com/docs/methods/get-account-details

 

0 Upvotes
Willson
HubSpot Employee
HubSpot Employee

Profile photo is not retrieved with User API

Hi @mahalakshmi5119 


To reiterate on my last post, we do not have any APIs that interact with User information, therefore we do not have any endpoints as of yet to fetch profile photos. 

 

The reference to the File COS endpoint was only in relation to having those photos hosted in your File Manager but as the Profile photos are not hosted here, we cannot use this endpoint to fetch them.

Thanks

Product Manager @ HubSpot
0 Upvotes