POST
/
api
/
v1
/
uploadImage
curl --request POST \
  --url https://hero.page/api/v1/uploadImage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "base64": "data:image/png;base64,iVBORw0KG...",
  "name": "ProfileImage"
}'
{
  "url": "https://url-for-image-example.com/api_images_YourFileName_1628009230000.png"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
base64
string

The base64-encoded image

Example:

"data:image/png;base64,iVBORw0KG..."

name
string

Optional name prefix for the uploaded image, limited to 100 characters

Maximum length: 100
Example:

"ProfileImage"

Response

201
application/json
Image uploaded successfully
url
string

The signed URL of the uploaded image

Example:

"https://url-for-image-example.com/api_images_YourFileName_1628009230000.png"