> ## Documentation Index
> Fetch the complete documentation index at: https://docs.makelocalads.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a photoshoot

> Starts an asynchronous photoshoot from a reusable template, a Quick Shoot direction, or chosen cells of a moodboard (`moodboard_shots`). Send exactly one of the three.



## OpenAPI

````yaml /api/openapi.yaml post /photoshoots
openapi: 3.1.0
info:
  title: LocalAds API
  version: 1.0.0
  description: Public API for LocalAds customer integrations.
servers:
  - url: https://makelocalads.com/api/v1
security:
  - apiKey: []
tags:
  - name: Account
    description: Your organization, balance and prices.
  - name: Set up
    description: Brands, products, audiences and image uploads.
  - name: Ad campaigns
    description: Campaigns and their creatives.
  - name: Listing images
    description: Amazon listing image ideas and renders.
  - name: Photoshoots
    description: Photoshoots, templates and moodboards.
  - name: ChatGPT ads
    description: ChatGPT ad groups and ads.
  - name: UGC videos
    description: Recipes, concepts, voices and videos.
  - name: Creatives
    description: The cross-type list of finished images and videos.
paths:
  /photoshoots:
    post:
      tags:
        - Photoshoots
      summary: Create a photoshoot
      description: >-
        Starts an asynchronous photoshoot from a reusable template, a Quick
        Shoot direction, or chosen cells of a moodboard (`moodboard_shots`).
        Send exactly one of the three.
      operationId: createPhotoshoot
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PhotoshootCreate'
            examples:
              template:
                summary: Generate from a template
                value:
                  product_id: a1516a75-9be5-461a-93af-c1896a0a3127
                  template_id: photoshoot-shot-pack:38b66c64-e76f-483f-a185-2d377ee2c5eb
              quick_shoot:
                summary: Create a Quick Shoot
                value:
                  product_id: a1516a75-9be5-461a-93af-c1896a0a3127
                  quick_shoot:
                    direction:
                      text: Place the product on a stone pedestal in warm sunlight.
                      image_urls:
                        - https://cdn.example.com/reference.jpg
                    look: standard
                    count: 3
              quick_shoot_retro:
                summary: Create a Quick Shoot in the retro look
                value:
                  product_id: a1516a75-9be5-461a-93af-c1896a0a3127
                  quick_shoot:
                    look: retro
                    count: 5
              quick_shoot_moodboard:
                summary: Create a Quick Shoot in a moodboard's style
                value:
                  product_id: a1516a75-9be5-461a-93af-c1896a0a3127
                  quick_shoot:
                    moodboard_id: 7c1f2e10-4b8f-4a3c-9d7e-2f5a6b8c9d01
                    count: 5
              moodboard_shots:
                summary: Pick shots from a moodboard
                value:
                  product_id: a1516a75-9be5-461a-93af-c1896a0a3127
                  moodboard_shots:
                    moodboard_id: 7c1f2e10-4b8f-4a3c-9d7e-2f5a6b8c9d01
                    cells:
                      - 0
                      - 4
                      - 8
      responses:
        '202':
          description: Photoshoot accepted.
          headers:
            Location:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Photoshoot'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        Optional caller-generated value that prevents duplicate generation when
        retrying the same request.
      schema:
        type: string
        minLength: 1
        maxLength: 255
  schemas:
    PhotoshootCreate:
      oneOf:
        - $ref: '#/components/schemas/TemplatePhotoshootCreate'
        - $ref: '#/components/schemas/QuickPhotoshootCreate'
        - $ref: '#/components/schemas/MoodboardShotsPhotoshootCreate'
    Photoshoot:
      type: object
      additionalProperties: false
      required:
        - id
        - brand_id
        - product_id
        - template_id
        - credits_charged
        - status
        - outputs
        - created_at
        - updated_at
      properties:
        credits_charged:
          type: integer
          description: >-
            Net credits charged so far. Refunds for failed renders are
            subtracted.
        id:
          type: string
          format: uuid
        brand_id:
          type: string
          format: uuid
        product_id:
          type: string
          format: uuid
        template_id:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - queued
            - in_progress
            - completed
            - failed
            - canceled
        outputs:
          type: array
          items:
            $ref: '#/components/schemas/PhotoshootOutput'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    TemplatePhotoshootCreate:
      type: object
      additionalProperties: false
      required:
        - product_id
        - template_id
      properties:
        product_id:
          type: string
          format: uuid
        template_id:
          type: string
        max_credits:
          type: integer
          minimum: 1
          description: >-
            Refuse the request with 422 credit_limit_exceeded, before anything
            is charged, if it would cost more than this many credits.
      example:
        product_id: a1516a75-9be5-461a-93af-c1896a0a3127
        template_id: photoshoot-shot-pack:38b66c64-e76f-483f-a185-2d377ee2c5eb
    QuickPhotoshootCreate:
      type: object
      additionalProperties: false
      required:
        - product_id
        - quick_shoot
      properties:
        product_id:
          type: string
          format: uuid
        quick_shoot:
          $ref: '#/components/schemas/QuickPhotoshootOptions'
        max_credits:
          type: integer
          minimum: 1
          description: >-
            Refuse the request with 422 credit_limit_exceeded, before anything
            is charged, if it would cost more than this many credits.
      example:
        product_id: a1516a75-9be5-461a-93af-c1896a0a3127
        quick_shoot:
          direction:
            text: Place the product on a stone pedestal in warm sunlight.
            image_urls:
              - https://cdn.example.com/reference.jpg
          look: standard
          count: 3
    MoodboardShotsPhotoshootCreate:
      type: object
      additionalProperties: false
      required:
        - product_id
        - moodboard_shots
      description: >-
        "Pick shots" from a moodboard: one photo per chosen cell, each in that
        cell's direction.
      properties:
        product_id:
          type: string
          format: uuid
        moodboard_shots:
          type: object
          additionalProperties: false
          required:
            - moodboard_id
          properties:
            moodboard_id:
              type: string
              format: uuid
              description: A completed moodboard for this product or a related one.
            cells:
              type: array
              minItems: 1
              maxItems: 9
              uniqueItems: true
              items:
                type: integer
                minimum: 0
                maximum: 8
              description: >-
                Grid cells to shoot, 0 to 8, left to right and top to bottom.
                Defaults to all nine. One image, and one credit, per cell.
        max_credits:
          type: integer
          minimum: 1
          description: >-
            Refuse the request with 422 credit_limit_exceeded, before anything
            is charged, if it would cost more than this many credits.
      example:
        product_id: a1516a75-9be5-461a-93af-c1896a0a3127
        moodboard_shots:
          moodboard_id: 7c1f2e10-4b8f-4a3c-9d7e-2f5a6b8c9d01
          cells:
            - 0
            - 4
            - 8
    PhotoshootOutput:
      type: object
      additionalProperties: false
      required:
        - id
        - position
        - status
        - image_url
        - width
        - height
        - caption
      properties:
        id:
          type: string
          format: uuid
        position:
          type:
            - integer
            - 'null'
        status:
          type: string
          enum:
            - queued
            - in_progress
            - completed
            - failed
            - canceled
        image_url:
          type:
            - string
            - 'null'
          format: uri
        width:
          type:
            - integer
            - 'null'
        height:
          type:
            - integer
            - 'null'
        caption:
          type:
            - string
            - 'null'
          description: >-
            The line printed in italics under the artwork. Present for the
            `retro` look, `null` for every other look.
    Problem:
      type: object
      required:
        - type
        - title
        - status
        - detail
        - code
        - request_id
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        code:
          type: string
        request_id:
          type: string
    QuickPhotoshootOptions:
      type: object
      additionalProperties: false
      properties:
        direction:
          $ref: '#/components/schemas/QuickPhotoshootDirection'
        moodboard_id:
          type: string
          format: uuid
          description: A completed moodboard from GET /moodboards to steer the style.
        look:
          type: string
          enum:
            - standard
            - close_up
            - lifestyle
            - out_of_the_box
            - retro
          default: standard
          description: >-
            Visual treatment for the generated photos. `retro` is a generative
            look: it derives its own scenes from the product, renders every
            output as a print-ready 1200x1800 card at 300 DPI, and uses
            `direction.text` as guidance only. `direction.image_urls` are
            ignored for `retro`.
        count:
          type: integer
          enum:
            - 1
            - 3
            - 5
            - 8
            - 15
          default: 1
    QuickPhotoshootDirection:
      type: object
      additionalProperties: false
      minProperties: 1
      properties:
        text:
          type: string
          minLength: 1
          maxLength: 2000
        image_urls:
          type: array
          minItems: 1
          maxItems: 8
          description: Publicly accessible HTTPS images used as visual direction.
          items:
            type: string
            format: uri
            pattern: ^https://
  responses:
    BadRequest:
      description: Invalid request.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Forbidden:
      description: >-
        The API key lacks the required permission (`insufficient_permission`),
        the organization's plan does not include API access
        (`plan_upgrade_required`; Pro and Enterprise only), or the organization
        is suspended (`org_suspended`).
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    NotFound:
      description: Resource not found.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Conflict:
      description: >-
        Idempotency key conflict, an identical request still in progress, or a
        brand already exists for the requested website.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Unprocessable:
      description: >-
        A product rule, plan limit, or credit limit blocked the request: not
        enough credits (`insufficient_credits`), an API key's monthly credit
        budget (`key_budget_exceeded`), a request costing more than its
        `max_credits` (`credit_limit_exceeded`), a plan without the feature
        (`plan_required`), or a rule the app enforces too (`request_rejected`,
        with the reason in `detail`).
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    RateLimited:
      description: API key rate limit exceeded.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: lads_...

````