How to get the user's image from their User Object?

  • 1
  • Question
  • Updated 3 years ago
Once I use the API to get the user's "User Object", I only get a partial URI for their profilePicture (ie "images/profile_pictures/blahblahblah.jpg"), but I dont see how to format the full URL to display that image in my application.  Can you please provide the information on how to access this?
Photo of David Rein

David Rein

  • 162 Points 100 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Luke Ma

Luke Ma, Employee

  • 220 Points 100 badge 2x thumb
Hi David,

To get the full URL, you can use the profile_picture sub-resource at:
/v1/user/{user_id}/profile_picture?type=ORIGINAL

which should return you the full URL of the picture, or the string "default" if no profile picture has been set.
Photo of David Rein

David Rein

  • 162 Points 100 badge 2x thumb
Perfect!  Thank you!