Upload a local product image
If the image is on a computer or private server, upload it first. Send one file at a time using multipart form data and keep the returnedurl. The endpoint
accepts JPG, PNG, WebP, HEIC, and HEIF images up to 10 MB.
url in the product’s image_urls array. To add several images, repeat
the upload once per file. Do not send base64 or a JSON data URL. If an image is
already available at a public HTTPS URL, you can place that URL directly in
image_urls; LocalAds will validate it and keep its own copy.
Create a product
brand_id and name are required. Get the brand ID from
GET /brands. Add description to give creative
workflows customer-facing product context, and add image_urls when the
product will be used for image generation.
You can provide source_url instead of name to add a product from its page.
Requests with a URL or image URLs return 202 Accepted with
status: "processing". Retrieve the product until its status is ready
before starting creative work. Idempotency-Key is optional on creation and
safely replays a repeated request. Do not combine source_url and image_urls
in one request.
List products
next_cursor is not null, pass it unchanged in the next request:
Retrieve a product
404, just like missing
resources.
List photoshoot creatives
Retrieve the completed photoshoot images generated for a product:next_cursor unchanged to retrieve the next page.
Update a product
Send only the fields that should change:description and the other supplied fields replace their current values.
Send description: null to clear the description. image_urls replaces the
complete image list; send an empty array to clear the images. Supplying new
image URLs returns 202 Accepted; retrieve the product until its status is
ready.
Delete a product
204 No Content. The product and its related
resources are no longer available through the API, active generation stops,
and subsequent requests for the product return 404 Not Found. Deletion cannot
be reversed through the public API.