> ## 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 using an existing product and template.



## 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: []
paths:
  /photoshoots:
    post:
      summary: Create a photoshoot
      description: >-
        Starts an asynchronous photoshoot using an existing product and
        template.
      operationId: createPhotoshoot
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PhotoshootCreate'
            example:
              product_id: a1516a75-9be5-461a-93af-c1896a0a3127
              template_id: photoshoot-shot-pack:38b66c64-e76f-483f-a185-2d377ee2c5eb
      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 photoshoots when
        retrying the same request.
      schema:
        type: string
        minLength: 1
        maxLength: 255
  schemas:
    PhotoshootCreate:
      type: object
      additionalProperties: false
      required:
        - product_id
        - template_id
      properties:
        product_id:
          type: string
          format: uuid
        template_id:
          type: string
    Photoshoot:
      type: object
      additionalProperties: false
      required:
        - id
        - brand_id
        - product_id
        - template_id
        - status
        - outputs
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
        brand_id:
          type: string
          format: uuid
        product_id:
          type: string
          format: uuid
        template_id:
          type: string
        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
    PhotoshootOutput:
      type: object
      additionalProperties: false
      required:
        - id
        - position
        - status
        - image_url
        - width
        - height
      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'
    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
  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.
      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 or an identical request still in progress.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Unprocessable:
      description: A product rule, plan limit, or credit limit blocked the request.
      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_...

````