PropertyPixel Projects API

Properties. Each project holds the photos and results for one listing.

GitHub OpenAPI

Operations 5

GET /projects List projects #
POST /projects Create a project #
GET /projects/{id} Get a project #
DELETE /projects/{id} Delete a project #
GET /projects/{id}/results Show results #

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-projects-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-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PropertyPixel Projects 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: Projects
  description: Properties. Each project holds the photos and results for one listing.
paths:
  /projects:
    get:
      operationId: list_projects
      summary: List projects
      description: 'List the property projects in the connected workspace, newest first by default. Each project groups the photos of one listing. Use `search` to find a project by name or address before asking the user for an ID. Returns project IDs, photo counts, a cover image and a Studio link; page with `next_cursor`.


        Works with view-only access.'
      tags:
      - Projects
      x-required-scope: read
      parameters:
      - in: query
        name: search
        schema:
          description: Case-insensitive match on project name or address.
          type: string
          maxLength: 200
        description: Case-insensitive match on project name or address.
      - in: query
        name: sort
        schema:
          default: newest
          description: Sort order.
          type: string
          enum:
          - newest
          - oldest
          - name_asc
          - name_desc
        description: Sort order.
      - in: query
        name: cursor
        schema:
          description: Opaque cursor from a previous page's next_cursor.
          type: string
        description: Opaque cursor from a previous page's next_cursor.
      - in: query
        name: limit
        schema:
          default: 25
          description: Page size (1–100).
          type: integer
          minimum: 1
          maximum: 100
        description: Page size (1–100).
      responses:
        '200':
          description: List projects
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Project'
                  next_cursor:
                    type:
                    - string
                    - 'null'
                required:
                - data
                - next_cursor
                additionalProperties: false
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
    post:
      operationId: create_project
      summary: Create a project
      description: 'Create a new, empty project for one property listing. Name it after the address or listing so the user can find it later. Then add photos with add_photos or create_upload_link.


        Requires a connection with edit access.'
      tags:
      - Projects
      x-required-scope: write
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: Project name, e.g. the street address.
                address:
                  description: Property address.
                  type: string
                  maxLength: 500
                property_type:
                  description: Kind of property. Use villa for a detached house, apartment for a condo or flat, and other for anything else (land, industrial, mixed use).
                  type: string
                  enum:
                  - apartment
                  - villa
                  - townhouse
                  - penthouse
                  - office
                  - retail
                  - other
              required:
              - name
      responses:
        '201':
          description: Create a project
          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/Project'
        '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'
        '500':
          $ref: '#/components/responses/InternalError'
  /projects/{id}:
    get:
      operationId: get_project
      summary: Get a project
      description: 'Get one project with all its photos (IDs, room types, signed preview URLs) and the status of its most recent upload link (waiting, receiving, done or expired). Use the photo IDs with enhance_photos or stage_photos. To see finished edits, call show_results instead.


        Works with view-only access.'
      tags:
      - Projects
      x-required-scope: read
      parameters:
      - in: path
        name: id
        schema:
          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: Project ID.
        required: true
        description: Project ID.
      responses:
        '200':
          description: Get a project
          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/ProjectDetail'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
    delete:
      operationId: delete_project
      summary: Delete a project
      description: 'Delete a project with all its photos and edited results. Only do this when the user explicitly asks to delete that project; confirm the project name with them first. It disappears from the Studio immediately.


        Requires a connection with edit access.'
      tags:
      - Projects
      x-required-scope: write
      parameters:
      - in: path
        name: id
        schema:
          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: Project ID.
        required: true
        description: Project ID.
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Delete a project
          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/DeletedProject'
        '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'
        '500':
          $ref: '#/components/responses/InternalError'
  /projects/{id}/results:
    get:
      operationId: show_results
      summary: Show results
      description: 'Show a project''s edited results: what is still processing, the newest finished version of each photo, and the versions the user picked. Use this when the user wants to see or review their results. Result URLs are signed for 1 hour.


        Works with view-only access.'
      tags:
      - Projects
      x-required-scope: read
      parameters:
      - in: path
        name: id
        schema:
          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: Project ID.
        required: true
        description: Project ID.
      responses:
        '200':
          description: Show results
          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/Results'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    UploadLinkStatus:
      type: string
      enum:
      - waiting
      - receiving
      - done
      - expired
    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
    Results:
      type: object
      properties:
        object:
          type: string
          const: results
        project:
          $ref: '#/components/schemas/Project'
        jobs:
          type: array
          items:
            $ref: '#/components/schemas/Job'
          description: Jobs still running, the newest finished version of each photo, and every pick (newest first).
      required:
      - object
      - project
      - jobs
      additionalProperties: false
    ProjectDetail:
      type: object
      properties:
        object:
          type: string
          const: project
        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)$
        name:
          type: string
        address:
          type:
          - string
          - 'null'
        property_type:
          type:
          - string
          - 'null'
        photo_count:
          type: integer
        completed_job_count:
          type: integer
        cover:
          anyOf:
          - $ref: '#/components/schemas/MediaUrl'
          - type: 'null'
        studio_url:
          type: string
          format: uri
          description: Open this project in the PropertyPixel Studio.
        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))$
        updated_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'
        photos:
          type: array
          items:
            $ref: '#/components/schemas/Photo'
        upload_link:
          anyOf:
          - type: object
            properties:
              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)$
              status:
                $ref: '#/components/schemas/UploadLinkStatus'
              photos_received:
                type: integer
              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))$
            required:
            - id
            - status
            - photos_received
            - expires_at
            additionalProperties: false
          - type: 'null'
          description: The most recent upload link for this project, if any. The URL is only returned when the link is created.
      required:
      - object
      - id
      - name
      - address
      - property_type
      - photo_count
      - completed_job_count
      - cover
      - studio_url
      - created_at
      - updated_at
      - photos
      - upload_link
      additionalProperties: false
    DeletedProject:
      type: object
      properties:
        object:
          type: string
          const: project
        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)$
        deleted:
          type: boolean
          const: true
        photos_deleted:
          type: integer
      required:
      - object
      - id
      - deleted
      - photos_deleted
      additionalProperties: false
    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`).
    Project:
      type: object
      properties:
        object:
          type: string
          const: project
        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)$
        name:
          type: string
        address:
          type:
          - string
          - 'null'
        property_type:
          type:
          - string
          - 'null'
        photo_count:
          type: integer
        completed_job_count:
          type: integer
        cover:
          anyOf:
          - $ref: '#/components/schemas/MediaUrl'
          - type: 'null'
        studio_url:
          type: string
          format: uri
          description: Open this project in the PropertyPixel Studio.
        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))$
        updated_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
      - name
      - address
      - property_type
      - photo_count
      - completed_job_count
      - cover
      - studio_url
      - created_at
      - updated_at
      additionalProperties: false
    JobStatus:
      type: string
      enum:
      - pending
      - processing
      - completed
      - failed
      - cancelled
    Photo:
      type: object
      properties:
        object:
          type: string
          const: photo
        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)$
        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'
        filename:
          type:
          - string
          - 'null'
        room_type:
          type:
          - string
          - 'null'
        width:
          type:
          - integer
          - 'null'
        height:
          type:
          - integer
          - 'null'
        original:
          anyOf:
          - $ref: '#/components/schemas/MediaUrl'
          - type: 'null'
        thumbnail:
          anyOf:
          - $ref: '#/components/schemas/MediaUrl'
          - type: 'null'
        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))$
      required:
      - object
      - id
      - project_id
      - filename
      - room_type
      - width
      - height
      - original
      - thumbnail
      - created_at
      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
  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'
    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'
    Conflict:
      description: 'The request conflicts with the current state. Codes: `conflict`, `idempotency_in_progress`.'
      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'
    BadRequest:
      description: 'The request is invalid. Codes: `validation_failed`.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  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