Upload a product image. Returns the image path. Requires login.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
or
Body Params multipart/form-dataRequired
Request Code Samples
curl --location --request POST '/api.php?API=magic/upload' \
--header 'Authorization: Bearer <token>' \
--form 'CLIENT_API=""' \
--form 'openid=""' \
--form 'photo=@""'
Responses
text/plain
Returns the uploaded image path
"photo/202604/20260408_97F5535FA9906B0067619B86809B9DA2.jpeg"
Modified at 2026-04-14 03:43:47