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
headerrequired

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

Body

application/json
base64
string

The base64-encoded image

name
string

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

Response

201 - application/json
url
string

The signed URL of the uploaded image