ESTAGE Support
IdeasMy tickets

Add an image by URL

Permission products:writeRate limit writesIdempotent with Idempotency-Key
POSThttps://api.estage.com/v1/products/{id}/images

Authorization

ESTAGE-API-Keystringheaderrequired

A project key, est_live_…, from Settings → API keys. Call from server code only.

Path parameters

idintegerrequired

Body

application/json
srcstringrequireduri≤ 2048 chars

Public URL of the image. Stored as given; not downloaded.

altstringnullable≤ 255 chars
positionintegernullabledefault 0≥ 0

Headers

Idempotency-Keystring≤ 255 chars

Any unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.

RequestcURL
curl --request POST \
  --url 'https://api.estage.com/v1/products/product-id/images' \
  --header 'ESTAGE-API-Key: est_live_your-api-key' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: your-unique-key' \
  --data '{ "src": "https://cdn.example.com/tee-front.jpg", "alt": "Front", "position": 0 }'
Created
{
  "data": {
    "id": 9120,
    "src": "https://cdn.example.com/tee-front.jpg",
    "alt": "Front",
    "position": 0
  }
}
Example. Errors are { error: { code, message, details } }.