Skip to main content

GetUserProfilePicture

Get user profile image (image data)

Description

  • Obtain the user's profile image (image data) in a format that can be displayed in the img tag of html.
  • It can be obtained without granting Hexabase authentication information (an API token).
  • If the user has not registered a profile image, the default image data is obtained in a format that can be displayed in the img tag of html.

Method

GET

Request URL Format

/api/v0/public/userinfo/profilepic/:user-id

URL Params

user-id    : User ID

Request URL Sample

GET https://api.xxx.com/api/v0/public/userinfo/profilepic/640a7512752b1eef8aae166b

Way of Using

HTML

Specify user-id

<img src="https://api.xxx.com/api/v0/public/userinfo/profilepic/640a7512752b1eef8aae166b" >

Response Sample

(Omitted)* Binary data of the corresponding profile image