PropertyPixel Editing API

Photo enhancement and virtual staging. Spends credits.

GitHub OpenAPI

Operations 2

POST /enhancements Enhance photos #
POST /stagings Virtually stage photos #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/propertypixel-app:propertypixel-app-editing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

propertypixel-app-editing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PropertyPixel Editing API
  version: 1.1.0
  summary: Enhance and stage real estate photos, and turn them into listing videos.
  description: 'The PropertyPixel REST API covers the photo workflow (create projects, add photos, enhance and stage them, and download the results) and listing videos made from those photos. The MCP server at `https://mcp.propertypixel.app` exposes these operations as tools.


    Authenticate with an API key (`Authorization: Bearer pp_live_…`) created in Settings → Developers, or with an OAuth access token. Each credential is bound to one workspace and spends that workspace''s credits.


    Operations that spend credits use a quote → confirm flow. Errors are `application/problem+json` with a stable `code`. Guides: https://docs.propertypixel.app.'
  termsOfService: https://propertypixel.app/terms
  contact:
    name: PropertyPixel support
    email: hello@propertypixel.app
    url: https://docs.propertypixel.app
  x-logo:
    url: https://propertypixel.app/branding/logo-full-teal.svg
    altText: PropertyPixel
    href: https://propertypixel.app
servers:
- url: https://api.propertypixel.app/v1
  description: This deployment
security:
- bearerAuth: []
- oauth2: []
tags:
- name: Editing
  description: Photo enhancement and virtual staging. Spends credits.
paths:
  /enhancements:
    post:
      operationId: enhance_photos
      summary: Enhance photos
      description: 'Apply AI edits (lighting, declutter, blue skies, day to dusk, furniture removal, and more) to listing photos. Costs 100 credits per photo, plus 100 per photo with ultra_hd. All enhancement_types are combined into one result per photo.


        Select photos with photo_ids, or project_id + all_photos: true. Defaults: ultra_hd false; edits start from the original photo unless versions names a prior result.


        Spends credits in two steps. Call without quote_id first: you get a quote (cost, balance before and after, whether the balance covers it, and whether results will be watermarked) and nothing is spent. Show the cost to the user and wait for a yes, then call again with the same arguments plus quote_id. The quote lasts 10 minutes and only matches identical arguments.


        Results are asynchronous: this returns job IDs right away (status pending). Poll get_job_status with the job IDs, waiting poll_after_ms between calls, until each job is completed or failed. Failed jobs are refunded automatically.


        Requires a connection with edit access. Spends credits. Without `quote_id` it returns 409 `quote_required` with a quote and spends nothing. Resend with `quote_id` to run, or send `auto_confirm: true` to skip the quote.'
      tags:
      - Editing
      x-required-scope: write
      x-spends-credits: true
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                photo_ids:
                  description: 'The photos to use. Get IDs from get_project. Alternatively pass project_id with all_photos: true.'
                  minItems: 1
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                project_id:
                  description: The project the photos belong to. Required with all_photos; with photo_ids it must match their project.
                  type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                all_photos:
                  description: Use every photo in project_id instead of listing photo_ids.
                  type: boolean
                enhancement_types:
                  minItems: 1
                  type: array
                  items:
                    $ref: '#/components/schemas/EnhancementType'
                  description: One or more edits to apply together in a single result, e.g. ["improve_lighting", "blue_skies"]. See list_edit_options for every type.
                room_type:
                  description: Set the room type on every selected photo first (helps some edits).
                  $ref: '#/components/schemas/RoomType'
                ultra_hd:
                  default: false
                  description: Upscale each result to at least 4K, for 100 extra credits per result. Default false.
                  type: boolean
                versions:
                  description: 'Edit on top of a previous result instead of the original: map of photo_id → job_id of a completed job on that photo. Photos not listed use the original.'
                  type: object
                  propertyNames:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  additionalProperties:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                quote_id:
                  description: The id of a quote the user confirmed. Omit it to get a quote first; nothing is spent without one.
                  type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                auto_confirm:
                  description: REST with a personal API key only. Skip the quote step and spend immediately. For trusted scripts; ignored for app (OAuth) connections, which always get a quote.
                  type: boolean
              required:
              - enhancement_types
      responses:
        '201':
          description: Enhance photos
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobBatch'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/QuoteRequired'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
  /stagings:
    post:
      operationId: stage_photos
      summary: Virtually stage photos
      description: 'Virtually stage rooms: furnish empty rooms or restyle furnished ones in a design_style. Costs 100 credits per variation per photo, plus 100 per variation with ultra_hd.


        Select photos with photo_ids, or project_id + all_photos: true. Defaults: variations 1, ultra_hd false; staging starts from the original photo unless versions names a prior result (e.g. a decluttered one).


        Spends credits in two steps. Call without quote_id first: you get a quote (cost, balance before and after, whether the balance covers it, and whether results will be watermarked) and nothing is spent. Show the cost to the user and wait for a yes, then call again with the same arguments plus quote_id. The quote lasts 10 minutes and only matches identical arguments.


        Results are asynchronous: this returns job IDs right away (status pending). Poll get_job_status with the job IDs, waiting poll_after_ms between calls, until each job is completed or failed. Failed jobs are refunded automatically.


        Requires a connection with edit access. Spends credits. Without `quote_id` it returns 409 `quote_required` with a quote and spends nothing. Resend with `quote_id` to run, or send `auto_confirm: true` to skip the quote.'
      tags:
      - Editing
      x-required-scope: write
      x-spends-credits: true
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                photo_ids:
                  description: 'The photos to use. Get IDs from get_project. Alternatively pass project_id with all_photos: true.'
                  minItems: 1
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                project_id:
                  description: The project the photos belong to. Required with all_photos; with photo_ids it must match their project.
                  type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                all_photos:
                  description: Use every photo in project_id instead of listing photo_ids.
                  type: boolean
                design_style:
                  description: Furniture and decor style, e.g. modern or scandinavian. See list_edit_options.
                  $ref: '#/components/schemas/DesignStyle'
                variations:
                  default: 1
                  description: Different stagings to generate per photo (1–4). Default 1. Each one is charged.
                  type: integer
                  minimum: 1
                  maximum: 4
                ultra_hd:
                  default: false
                  description: Upscale each result to at least 4K, for 100 extra credits per result. Default false.
                  type: boolean
                versions:
                  description: 'Edit on top of a previous result instead of the original: map of photo_id → job_id of a completed job on that photo. Photos not listed use the original.'
                  type: object
                  propertyNames:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  additionalProperties:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                quote_id:
                  description: The id of a quote the user confirmed. Omit it to get a quote first; nothing is spent without one.
                  type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                auto_confirm:
                  description: REST with a personal API key only. Skip the quote step and spend immediately. For trusted scripts; ignored for app (OAuth) connections, which always get a quote.
                  type: boolean
              required:
              - design_style
      responses:
        '201':
          description: Virtually stage photos
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobBatch'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/QuoteRequired'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    Unprocessable:
      description: 'An Idempotency-Key was reused with a different body, or an upload was rejected. Codes: `idempotency_conflict`, `upload_rejected`.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    InsufficientCredits:
      description: 'The workspace does not have enough credits. Codes: `insufficient_credits`.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    NotFound:
      description: 'The resource doesn''t exist in this workspace. Codes: `not_found`.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    RateLimited:
      description: 'Too many requests for this connection. Codes: `rate_limited`.'
      headers:
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Forbidden:
      description: 'The credential can''t do this. View-only connections get forbidden_scope on writes. Codes: `forbidden_scope`, `forbidden`.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Unauthorized:
      description: 'Missing, invalid or revoked credential. Codes: `unauthorized`.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    InternalError:
      description: 'Something failed on our side. Retry later. Codes: `internal`.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    QuoteRequired:
      description: 'This request spends credits and has no valid quote. Codes: `quote_required` (the body''s `quote` holds the price), `quote_expired`, `quote_mismatch`, `idempotency_in_progress`, `conflict`.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/QuoteProblem'
    BadRequest:
      description: 'The request is invalid. Codes: `validation_failed`.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  schemas:
    ErrorCode:
      type: string
      enum:
      - unauthorized
      - forbidden_scope
      - forbidden
      - upgrade_required
      - not_found
      - validation_failed
      - insufficient_credits
      - quote_required
      - quote_expired
      - quote_mismatch
      - idempotency_conflict
      - idempotency_in_progress
      - conflict
      - video_not_ready
      - rate_limited
      - upload_rejected
      - internal
      description: Stable machine-readable error code.
    Job:
      type: object
      properties:
        object:
          type: string
          const: job
        id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        kind:
          $ref: '#/components/schemas/JobKind'
        status:
          $ref: '#/components/schemas/JobStatus'
        progress:
          anyOf:
          - type: number
            minimum: 0
            maximum: 100
          - type: 'null'
          description: Percent complete while processing.
        stage:
          type:
          - string
          - 'null'
        project_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
        photo_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
          description: Source photo.
        photo_ids:
          type: array
          items:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: All source photos, in order.
        source_job_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
          description: Prior version this edit was applied on top of.
        enhancement_types:
          type: array
          items:
            type: string
        design_style:
          type:
          - string
          - 'null'
        ultra_hd:
          type: boolean
        credits:
          type:
          - integer
          - 'null'
        picked:
          type: boolean
        watermarked:
          type: boolean
        result:
          anyOf:
          - $ref: '#/components/schemas/MediaUrl'
          - type: 'null'
          description: The finished image, when completed.
        thumbnail:
          anyOf:
          - $ref: '#/components/schemas/MediaUrl'
          - type: 'null'
        error:
          anyOf:
          - type: object
            properties:
              code:
                type: string
              message:
                type: string
            required:
            - code
            - message
            additionalProperties: false
          - type: 'null'
          description: Why the job failed. Failed jobs are refunded automatically.
        created_at:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        completed_at:
          anyOf:
          - type: string
            format: date-time
            pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
          - type: 'null'
      required:
      - object
      - id
      - kind
      - status
      - progress
      - stage
      - project_id
      - photo_id
      - photo_ids
      - source_job_id
      - enhancement_types
      - design_style
      - ultra_hd
      - credits
      - picked
      - watermarked
      - result
      - thumbnail
      - error
      - created_at
      - completed_at
      additionalProperties: false
    Quote:
      type: object
      properties:
        object:
          type: string
          const: quote
        id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        operation:
          type: string
          description: The operation this quote prices, e.g. enhance_photos.
        credits:
          type: integer
          description: Total credits the request will spend.
        balance:
          type: object
          properties:
            available:
              type: integer
            after:
              type: integer
          required:
          - available
          - after
          additionalProperties: false
        sufficient:
          type: boolean
          description: False when the balance can't cover the request.
        description:
          type: string
        lines:
          type: array
          items:
            type: object
            properties:
              label:
                type: string
              quantity:
                type: integer
              unit_credits:
                type: integer
            required:
            - label
            - quantity
            - unit_credits
            additionalProperties: false
        watermarked:
          type: boolean
          description: 'True for trial accounts: results carry a watermark.'
        expires_at:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        manage_credits_url:
          description: Where to add credits. Null inside ChatGPT.
          type:
          - string
          - 'null'
        confirm_instructions:
          type: string
      required:
      - object
      - id
      - operation
      - credits
      - balance
      - sufficient
      - description
      - lines
      - watermarked
      - expires_at
      - manage_credits_url
      - confirm_instructions
      additionalProperties: false
    RoomType:
      type: string
      enum:
      - living_room
      - dining_room
      - kitchen
      - entrance
      - hallway
      - master_bedroom
      - bedroom
      - kids_bedroom
      - guest_bedroom
      - master_bathroom
      - bathroom
      - guest_bathroom
      - powder_room
      - office
      - study
      - laundry_room
      - storage_room
      - maid_room
      - closet
      - gym
      - home_theater
      - pool
      - balcony
      - terrace
      - patio
      - garden
      - rooftop
      - garage
      - parking
      - exterior_front
      - exterior_back
      - building_exterior
      - view
      - basement
      - other
    QuoteProblem:
      type: object
      properties:
        type:
          type: string
          format: uri
          description: Link to the documentation for this error code.
        title:
          type: string
          description: Short summary of the error code.
        status:
          type: integer
          description: The HTTP status code.
        code:
          $ref: '#/components/schemas/ErrorCode'
        detail:
          type: string
          description: What went wrong, in plain language.
        errors:
          description: Per-field problems, for validation_failed.
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
              code:
                description: A stable code for this problem.
                type: string
              account_id:
                description: The account the problem is about, when it is about one.
                type: string
            required:
            - path
            - message
            additionalProperties: false
        retry_after:
          description: Seconds to wait before retrying, for rate_limited.
          type: integer
        quote:
          description: 'Present for quote_required: the price of this exact request.'
          $ref: '#/components/schemas/Quote'
      required:
      - type
      - title
      - status
      - code
      - detail
      additionalProperties: false
      description: A 409 from a spending operation. With code quote_required, `quote` holds the price; resend the same request with its `quote_id` to run it.
    JobKind:
      type: string
      enum:
      - enhancement
      - staging
    Problem:
      type: object
      properties:
        type:
          type: string
          format: uri
          description: Link to the documentation for this error code.
        title:
          type: string
          description: Short summary of the error code.
        status:
          type: integer
          description: The HTTP status code.
        code:
          $ref: '#/components/schemas/ErrorCode'
        detail:
          type: string
          description: What went wrong, in plain language.
        errors:
          description: Per-field problems, for validation_failed.
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
              code:
                description: A stable code for this problem.
                type: string
              account_id:
                description: The account the problem is about, when it is about one.
                type: string
            required:
            - path
            - message
            additionalProperties: false
        retry_after:
          description: Seconds to wait before retrying, for rate_limited.
          type: integer
      required:
      - type
      - title
      - status
      - code
      - detail
      additionalProperties: false
      description: An RFC 9457 problem details object (`application/problem+json`).
    JobStatus:
      type: string
      enum:
      - pending
      - processing
      - completed
      - failed
      - cancelled
    DesignStyle:
      type: string
      enum:
      - modern
      - contemporary
      - scandinavian
      - industrial
      - farmhouse
      - coastal
      - mid_century_modern
      - hamptons
      - luxury
      - minimalist
      - traditional
      - japandi
      - glam
      - bohemian
    JobBatch:
      type: object
      properties:
        object:
          type: string
          const: job_batch
        jobs:
          type: array
          items:
            $ref: '#/components/schemas/Job'
        failed:
          type: array
          items:
            type: object
            properties:
              photo_id:
                type: string
              error:
                type: string
            required:
            - photo_id
            - error
            additionalProperties: false
        credits_spent:
          type: integer
        poll_after_ms:
          type: integer
          description: Suggested wait before calling get_job_status.
      required:
      - object
      - jobs
      - failed
      - credits_spent
      - poll_after_ms
      additionalProperties: false
    MediaUrl:
      type: object
      properties:
        url:
          type: string
          format: uri
        expires_at:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
          description: Signed URL expiry (about 1 hour). Re-fetch for a fresh URL.
      required:
      - url
      - expires_at
      additionalProperties: false
    EnhancementType:
      type: string
      enum:
      - improve_lighting
      - clean_and_tidy
      - remove_furniture
      - blue_skies
      - day_to_dusk
      - lawn_repair
      - straighten_and_reframe
      - upscale
      - rain_to_shine
      - natural_twilight
      - remove_watermark
      - night_to_day
      - pool_water
  headers:
    RetryAfter:
      required: true
      description: Seconds to wait before retrying.
      schema:
        type: integer
        description: Seconds to wait before retrying.
    RateLimitReset:
      required: true
      description: Seconds until the window resets.
      schema:
        type: integer
        description: Seconds until the window resets.
    RateLimitLimit:
      required: true
      description: Requests allowed per window.
      schema:
        type: integer
        description: Requests allowed per window.
    RateLimitRemaining:
      required: true
      description: Requests left in this window.
      schema:
        type: integer
        description: Requests left in this window.
  parameters:
    IdempotencyKey:
      in: header
      name: Idempotency-Key
      schema:
        description: A unique key (for example a UUID) that makes retries safe. A retry with the same key and body returns the stored response; the same key with a different body returns 422. Keys last 24 hours.
        type: string
        maxLength: 255
      description: A unique key (for example a UUID) that makes retries safe. A retry with the same key and body returns the stored response; the same key with a different body returns 422. Keys last 24 hours.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pp_live_…
      description: An API key from Settings → Developers (`pp_live_…`), or an OAuth access token.
    oauth2:
      type: oauth2
      description: OAuth 2.1 with PKCE, for apps acting for a user. The user picks a workspace and access level on the consent screen.
      flows:
        authorizationCode:
          authorizationUrl: https://llflgtovnkrsjqydycyu.supabase.co/auth/v1/oauth/authorize
          tokenUrl: https://llflgtovnkrsjqydycyu.supabase.co/auth/v1/oauth/token
          scopes: {}
externalDocs:
  description: Guides and quickstarts
  url: https://docs.propertypixel.app
x-rate-limits:
  read: 120 requests per 60s per connection
  write: 20 requests per 60s per connection