Skip to main content
POST
/
products
/
{id}
/
images
Upload a new product image
curl --request POST \
  --url https://api.autoprintfarm.com/public/v1/products/{id}/images \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form image='@example-file'
{
  "success": true,
  "data": {
    "id": "<string>",
    "sort_order": 123,
    "url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Path Parameters

id
string
required

Body

multipart/form-data
image
file

Response

Image uploaded

success
enum<boolean>
required
Available options:
true
data
object
required