POST https://makelocalads.com/api/v1/templates and
POST https://makelocalads.com/api/v1/photoshoots
Permissions: create with photoshoots:generate, list with
photoshoots:read
A template is a reusable pack of shots, saved from 1 to 24 images. Each shot
keeps the same aspect ratio as its source image, and LocalAds retains a stable
copy of every accepted image, so the template does not depend on the original
URLs remaining available.
Usage notes
- Create the template from the product’s
product_id: it decides which brand can use the template. A template shoot requires the product and template to belong to the same brand. - Do not include
quick_shootormoodboard_shotswhen you sendtemplate_id. - Each rendered image costs 1 credit; creating and listing templates is free.
Create a template
201 Created and the template, with one shots entry
per image, in order:
Template fields
string
required
The product the template is made for. It decides which brand can use the
template.
string
required
The template’s name, 1 to 160 characters.
array
required
1 to 24 HTTPS images for the pack. LocalAds keeps a stable copy of each
accepted image and preserves its aspect ratio.
List and retrieve templates
List the templates available to a brand, newest first:id contains a colon; URL-encode it in the path, as above.
Start the photoshoot
202 Accepted with the photoshoot: one outputs entry per
template shot, all queued, and template_id set. max_credits (minimum 1)
refuses the request with 422 credit_limit_exceeded, before anything is
charged, if the shoot would cost more than this many credits.
Poll it like any other photoshoot: see
Get the photos.
Errors
See Errors and retries for the error format.