Profile photo is not retrieved with User API

Highlighted
New Contributor

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 ? 

Reply
0 Upvotes
3 Replies 3
Highlighted
HubSpot Moderator

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!

Matthew Willson

HubSpot Developer Support
Reply
0 Upvotes
Highlighted
New Contributor

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

 

Reply
0 Upvotes
Highlighted
HubSpot Moderator

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

Matthew Willson

HubSpot Developer Support
Reply
0 Upvotes