Skip to main content
POST
Upload an image

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Body

url
string

Public https URL of the image. Fetched once, server side; private and local addresses are refused, also after a redirect.

Maximum string length: 2048
data
string

Base64 image bytes (no data: prefix), up to 1048576 bytes decoded. Send larger images by url.

Maximum string length: 1398104
filename
string

Original file name, kept for the media library.

Required string length: 1 - 255

Response

Response for status 201

data
object
required