{
 "openapi": "3.1.1",
 "info": {
  "title": "루첼라 API — 다이렉트 API",
  "version": "2026-10-21",
  "description": "다이렉트 API. 인증은 머리말 X-Lucela-API-Key 하나, 성공·오류는 같은 네 칸 봉투(status · data · error · meta)."
 },
 "servers": [
  {
   "url": "https://apis.lucela.kr"
  }
 ],
 "tags": [
  {
   "name": "다이렉트 API",
   "description": "매물 초안 · 상품 내용 · 사진 · 일괄 등록 · 검토 요청"
  }
 ],
 "paths": {
  "/v1/direct/registration-profile": {
   "get": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "등록 프로필 조회",
    "description": "분야팩의 필수 · 선택 · 법정 확인 칸과 사진 정책",
    "operationId": "get_v1_direct_registration_profile",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "domainPackId · label · policyVersion · schemaId · requiredFieldPaths[] · optionalFieldPaths[] · mustKnowFieldPaths[] · conditionalRules · attributeFields[] · imageSlots · maxImageBytes · slotLabels · methodsByKind · image · blocks — 그 밖 칸",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "getDirectProductProfile",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "domainPackId": {},
          "label": {},
          "policyVersion": {},
          "schemaId": {},
          "requiredFieldPaths": {
           "type": "array",
           "items": {}
          },
          "optionalFieldPaths": {
           "type": "array",
           "items": {}
          },
          "mustKnowFieldPaths": {
           "type": "array",
           "items": {}
          },
          "conditionalRules": {},
          "attributeFields": {
           "type": "array",
           "items": {}
          },
          "imageSlots": {},
          "maxImageBytes": {},
          "slotLabels": {},
          "methodsByKind": {},
          "image": {},
          "blocks": {}
         },
         "additionalProperties": true
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "domainPackId",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "분야팩 번호 · 1~30자"
     },
     {
      "name": "listingKind",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "PHYSICAL · SOFTWARE · DATA · CREATIVE · SERVICE"
     }
    ]
   }
  },
  "/v1/direct/listings": {
   "post": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "매물 초안 생성",
    "description": "갈래만 있으면 초안 한 건(칸이 덜 차도 저장)",
    "operationId": "post_v1_direct_listings",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "id · kind · state · revision · title · description · condition · tradeMode · price · priceNegotiable · region · photos[] · product · badgeStatus · verifications[] · pending · workspaceId · version · contactDisclosure · noticeAcknowledged — 그 밖 칸",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "createListingDraft",
    "responses": {
     "201": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "id": {},
          "kind": {},
          "state": {},
          "revision": {},
          "title": {},
          "description": {},
          "condition": {},
          "tradeMode": {},
          "price": {},
          "priceNegotiable": {},
          "region": {},
          "photos": {
           "type": "array",
           "items": {}
          },
          "product": {},
          "badgeStatus": {},
          "verifications": {
           "type": "array",
           "items": {}
          },
          "pending": {},
          "workspaceId": {},
          "version": {},
          "contactDisclosure": {},
          "noticeAcknowledged": {}
         },
         "additionalProperties": true
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "listingKind": {
          "description": "PHYSICAL · SOFTWARE · DATA · CREATIVE · SERVICE"
         },
         "workspaceId": {
          "description": "작업공간 번호 — 연결 토큰의 작업공간"
         },
         "domainPackId": {},
         "categoryCode": {},
         "familyCode": {},
         "transferForm": {},
         "tradeStructure": {},
         "radiationGenerator": {},
         "marketItemId": {},
         "title": {},
         "description": {},
         "conditionCode": {},
         "tradeMode": {},
         "price": {
          "description": "원"
         },
         "priceNegotiable": {},
         "exchangeWants": {},
         "handover": {},
         "region": {},
         "visibility": {},
         "validDays": {},
         "components": {},
         "defects": {},
         "defectsNone": {},
         "acquiredOn": {},
         "brand": {},
         "model": {},
         "serialNumber": {},
         "details": {},
         "contactDisclosure": {
          "description": "disclosure · channels"
         }
        },
        "required": [
         "listingKind"
        ],
        "additionalProperties": false
       },
       "example": {
        "listingKind": "PHYSICAL",
        "domainPackId": "furniture",
        "title": "원목 책상 1200",
        "price": 120000,
        "region": "경기 양평군"
       }
      }
     }
    }
   }
  },
  "/v1/direct/listings/{listing_id}": {
   "get": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "매물 조회",
    "description": "내 작업공간 매물 하나(칸 전체 · 확인 상태 · 수정 중인 판)",
    "operationId": "get_v1_direct_listings_listing_id",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "id · kind · state · revision · title · description · condition · tradeMode · price · priceNegotiable · region · photos[] · product · badgeStatus · verifications[] · pending · workspaceId · version · contactDisclosure · noticeAcknowledged — 그 밖 칸",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "getListingPrivate",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "id": {},
          "kind": {},
          "state": {},
          "revision": {},
          "title": {},
          "description": {},
          "condition": {},
          "tradeMode": {},
          "price": {},
          "priceNegotiable": {},
          "region": {},
          "photos": {
           "type": "array",
           "items": {}
          },
          "product": {},
          "badgeStatus": {},
          "verifications": {
           "type": "array",
           "items": {}
          },
          "pending": {},
          "workspaceId": {},
          "version": {},
          "contactDisclosure": {},
          "noticeAcknowledged": {}
         },
         "additionalProperties": true
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/direct/listings/{listing_id}/draft": {
   "patch": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "매물 초안 수정",
    "description": "초안 · 반려 매물의 글 칸을 합쳐 저장",
    "operationId": "patch_v1_direct_listings_listing_id_draft",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "id · kind · state · revision · title · description · condition · tradeMode · price · priceNegotiable · region · photos[] · product · badgeStatus · verifications[] · pending · workspaceId · version · contactDisclosure · noticeAcknowledged — 그 밖 칸",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "updateListingDraft",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "id": {},
          "kind": {},
          "state": {},
          "revision": {},
          "title": {},
          "description": {},
          "condition": {},
          "tradeMode": {},
          "price": {},
          "priceNegotiable": {},
          "region": {},
          "photos": {
           "type": "array",
           "items": {}
          },
          "product": {},
          "badgeStatus": {},
          "verifications": {
           "type": "array",
           "items": {}
          },
          "pending": {},
          "workspaceId": {},
          "version": {},
          "contactDisclosure": {},
          "noticeAcknowledged": {}
         },
         "additionalProperties": true
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "If-Match",
      "in": "header",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "상품 내용 = 조회 응답 ETag · 그 밖 = 매물 version"
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "domainPackId": {},
         "categoryCode": {},
         "familyCode": {},
         "transferForm": {},
         "tradeStructure": {},
         "radiationGenerator": {},
         "marketItemId": {},
         "title": {},
         "description": {},
         "conditionCode": {},
         "tradeMode": {},
         "price": {
          "description": "원"
         },
         "priceNegotiable": {},
         "exchangeWants": {},
         "handover": {},
         "region": {},
         "visibility": {},
         "validDays": {},
         "components": {},
         "defects": {},
         "defectsNone": {},
         "acquiredOn": {},
         "brand": {},
         "model": {},
         "serialNumber": {},
         "details": {},
         "noticeAck": {}
        },
        "additionalProperties": false
       },
       "example": {
        "description": "상판 생활 흠집 두 곳",
        "priceNegotiable": true
       }
      }
     }
    }
   }
  },
  "/v1/direct/listings/{listing_id}/contact-disclosure": {
   "put": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "연락처 공개 설정",
    "description": "매물마다 연락처 공개 방식",
    "operationId": "put_v1_direct_listings_listing_id_contact_disclosure",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "disclosure · channels[]",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "setListingContactDisclosure",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "disclosure": {},
          "channels": {
           "type": "array",
           "items": {}
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "disclosure": {
          "description": "HIDDEN · AFTER_ACCEPT · PUBLIC"
         },
         "channels": {
          "description": "공개할 연락 수단 — HIDDEN 이 아니면 하나 이상"
         }
        },
        "required": [
         "disclosure"
        ],
        "additionalProperties": false
       },
       "example": {
        "disclosure": "AFTER_ACCEPT",
        "channels": [
         "phone"
        ]
       }
      }
     }
    }
   }
  },
  "/v1/direct/listings/{listing_id}/product-content": {
   "get": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "상품 내용 조회",
    "description": "고치는 판의 상품 내용 · ETag",
    "operationId": "get_v1_direct_listings_listing_id_product_content",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "listingId · revision · content · assets[] · meta(etag · state · editable · workspaceId · listingKind · domainPackId · conditionCode · noticeProfileVersion · sellerDisclosureRevision · slotLabels · updatedAt)",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "getDirectProductContent",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "listingId": {},
          "revision": {},
          "content": {},
          "assets": {
           "type": "array",
           "items": {}
          },
          "meta": {
           "type": "object",
           "properties": {
            "etag": {},
            "state": {},
            "editable": {},
            "workspaceId": {},
            "listingKind": {},
            "domainPackId": {},
            "conditionCode": {},
            "noticeProfileVersion": {},
            "sellerDisclosureRevision": {},
            "slotLabels": {},
            "updatedAt": {}
           },
           "required": [
            "etag",
            "state",
            "editable",
            "workspaceId",
            "listingKind",
            "domainPackId",
            "conditionCode",
            "noticeProfileVersion",
            "sellerDisclosureRevision",
            "slotLabels",
            "updatedAt"
           ]
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "put": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "상품 내용 저장",
    "description": "상품 내용 통째 교체(같은 멱등 키는 처음 응답)",
    "operationId": "put_v1_direct_listings_listing_id_product_content",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "listingId · revision · content · assets[] · meta(etag · state · editable · workspaceId · listingKind · domainPackId · conditionCode · noticeProfileVersion · sellerDisclosureRevision · slotLabels · updatedAt)",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "putDirectProductContent",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "listingId": {},
          "revision": {},
          "content": {},
          "assets": {
           "type": "array",
           "items": {}
          },
          "meta": {
           "type": "object",
           "properties": {
            "etag": {},
            "state": {},
            "editable": {},
            "workspaceId": {},
            "listingKind": {},
            "domainPackId": {},
            "conditionCode": {},
            "noticeProfileVersion": {},
            "sellerDisclosureRevision": {},
            "slotLabels": {},
            "updatedAt": {}
           },
           "required": [
            "etag",
            "state",
            "editable",
            "workspaceId",
            "listingKind",
            "domainPackId",
            "conditionCode",
            "noticeProfileVersion",
            "sellerDisclosureRevision",
            "slotLabels",
            "updatedAt"
           ]
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "If-Match",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "상품 내용 = 조회 응답 ETag · 그 밖 = 매물 version"
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "schemaVersion": {
          "description": "1.0.0"
         },
         "gallery": {
          "description": "사진 칸 3개 이하 · slot · assetId · alt"
         },
         "detailBlocks": {
          "description": "상세 블록 40개 이하"
         },
         "facts": {
          "type": "object"
         },
         "fulfillment": {
          "type": "object"
         },
         "rights": {
          "type": "object"
         },
         "attributes": {
          "description": "분야 속성 — 열쇠 AD + 숫자 셋"
         },
         "sellerDisclosureRevision": {},
         "noticeProfileVersion": {}
        },
        "required": [
         "schemaVersion"
        ],
        "additionalProperties": false
       },
       "example": {
        "schemaVersion": "1.0.0",
        "detailBlocks": [
         {
          "kind": "TEXT",
          "text": "원목 상판 · 철제 다리 · 2019년 구매"
         }
        ]
       }
      }
     }
    }
   }
  },
  "/v1/direct/listings/{listing_id}/product-validation": {
   "post": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "상품 점검",
    "description": "제출 기준 점검(공개 · 승인 아님)",
    "operationId": "post_v1_direct_listings_listing_id_product_validation",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "revision · policyVersion · contentHash · valid · issues[](fieldPath · code · message · retryable) · flags · warnings",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "validateDirectProduct",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "revision": {},
          "policyVersion": {},
          "contentHash": {},
          "valid": {},
          "issues": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "fieldPath": {},
             "code": {},
             "message": {},
             "retryable": {}
            },
            "required": [
             "fieldPath",
             "code",
             "message",
             "retryable"
            ]
           }
          },
          "flags": {},
          "warnings": {}
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/direct/listings/{listing_id}/product-preview": {
   "get": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "미리보기",
    "description": "공개되면 보일 모습(공개 주소 없음 · 검색 제외)",
    "operationId": "get_v1_direct_listings_listing_id_product_preview",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "listingId · revision · title · publicSeller(displayName · kind · disclosureUrl) · gallery[](slot · url · alt) · detailText · view · preview",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "previewDirectProduct",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "listingId": {},
          "revision": {},
          "title": {},
          "publicSeller": {
           "type": "object",
           "properties": {
            "displayName": {},
            "kind": {},
            "disclosureUrl": {}
           },
           "required": [
            "displayName",
            "kind",
            "disclosureUrl"
           ]
          },
          "gallery": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "slot": {},
             "url": {},
             "alt": {}
            },
            "required": [
             "slot",
             "url",
             "alt"
            ]
           }
          },
          "detailText": {},
          "view": {},
          "preview": {}
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/direct/listings/{listing_id}/media": {
   "post": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "사진 올리기",
    "description": "사진 한 장을 칸에(갤러리 칸마다 한 장 · 상세 20장 · 10MiB · multipart/form-data)",
    "operationId": "post_v1_direct_listings_listing_id_media",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "id · assetId · slot · galleryIndex · role · label · alt · origin · originLabel · width · height · state · warnings · url · srcSet[](w · url) · thumbUrl · exifStripped · overlap",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "attachListingMedia",
    "responses": {
     "201": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "id": {},
          "assetId": {},
          "slot": {},
          "galleryIndex": {},
          "role": {},
          "label": {},
          "alt": {},
          "origin": {},
          "originLabel": {},
          "width": {},
          "height": {},
          "state": {},
          "warnings": {},
          "url": {},
          "srcSet": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "w": {},
             "url": {}
            },
            "required": [
             "w",
             "url"
            ]
           }
          },
          "thumbUrl": {},
          "exifStripped": {},
          "overlap": {}
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "X-Lucela-Upload-Purpose",
      "in": "header",
      "required": true,
      "schema": {
       "enum": [
        "PRODUCT_IMAGE",
        "PRIVATE_EVIDENCE"
       ]
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "type": "object",
        "properties": {
         "slot": {
          "description": "1 · 2 · 3 · DETAIL · PROOF"
         },
         "file": {
          "description": "JPG · PNG · WebP",
          "type": "string",
          "format": "binary"
         },
         "origin": {
          "description": "ACTUAL · MANUFACTURER · REFERENCE — 없으면 받지 않음"
         },
         "rightsDeclared": {
          "description": "사진 사용권 선언 — 참이어야 받음"
         },
         "alt": {
          "description": "사진 설명"
         },
         "proofCode": {
          "description": "PROOF 칸 확인 번호"
         }
        },
        "required": [
         "slot",
         "file"
        ],
        "additionalProperties": false
       }
      }
     }
    }
   }
  },
  "/v1/direct/listings/{listing_id}/media/{media_id}": {
   "delete": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "사진 빼기",
    "description": "사진 한 장을 뺀다(사본은 남는다 · 가리키던 상세 블록도 뺀다)",
    "operationId": "delete_v1_direct_listings_listing_id_media_media_id",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "removed · assetId",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "removeListingMedia",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "removed": {},
          "assetId": {}
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "media_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/direct/documents/{document_id}/product-image-status": {
   "get": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "사진 처리 상태 조회",
    "description": "올린 사진의 변환 상태 · 치수",
    "operationId": "get_v1_direct_documents_document_id_product_image_status",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "documentId · state · issues[] — READY 면 assetId · width · height · warnings",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "getDirectImageStatus",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "documentId": {},
          "state": {},
          "issues": {},
          "READY": {},
          "assetId": {},
          "width": {},
          "height": {},
          "warnings": {}
         },
         "additionalProperties": true
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "document_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "사진을 올릴 때 받은 id"
     }
    ]
   }
  },
  "/v1/direct/bulk-imports": {
   "post": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "일괄 등록",
    "description": "100행까지 행마다 따로 초안으로(기본은 검사만 · 사진 · 공개 없음)",
    "operationId": "post_v1_direct_bulk_imports",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "jobId · dryRun · workspaceId · total · succeeded · failed · conflicts · rows[]",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "createBulkImport",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "jobId": {},
          "dryRun": {},
          "workspaceId": {},
          "total": {},
          "succeeded": {},
          "failed": {},
          "conflicts": {},
          "rows": {
           "type": "array",
           "items": {}
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "format": {
          "description": "JSON · CSV"
         },
         "rows": {
          "description": "JSON 행 100개 이하 · 행마다 externalId"
         },
         "csv": {
          "description": "CSV 글 · 열 10개"
         },
         "dryRun": {
          "description": "기본 참 — 결과만 보고 되돌림"
         },
         "resolutions": {
          "description": "원천 번호 → TAKE_SOURCE · KEEP_CURRENT"
         },
         "workspaceId": {}
        },
        "additionalProperties": false
       },
       "example": {
        "format": "JSON",
        "dryRun": true,
        "rows": [
         {
          "externalId": "SKU-1001",
          "listingKind": "PHYSICAL",
          "domainPackId": "furniture",
          "title": "원목 의자"
         }
        ]
       }
      }
     }
    }
   }
  },
  "/v1/direct/bulk-imports/{job_id}": {
   "get": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "일괄 등록 조회",
    "description": "작업 하나의 행별 결과",
    "operationId": "get_v1_direct_bulk_imports_job_id",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "jobId · workspaceId · format · createdAt · total · succeeded · failed · conflicts · rows[](rowNo · externalId · state · httpStatus · listingId · retryable · attempts — 실패 행은 error)",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "getBulkImport",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "jobId": {},
          "workspaceId": {},
          "format": {},
          "createdAt": {},
          "total": {},
          "succeeded": {},
          "failed": {},
          "conflicts": {},
          "rows": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "rowNo": {},
             "externalId": {},
             "state": {},
             "httpStatus": {},
             "listingId": {},
             "retryable": {},
             "attempts": {},
             "error": {}
            }
           }
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/direct/bulk-imports/{job_id}/retries": {
   "post": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "일괄 등록 재처리",
    "description": "실패 · 충돌 행만 다시(이미 된 행은 409)",
    "operationId": "post_v1_direct_bulk_imports_job_id_retries",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "jobId · workspaceId · format · createdAt · total · succeeded · failed · conflicts · rows[] · dryRun · retried[]",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "retryBulkImport",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "jobId": {},
          "workspaceId": {},
          "format": {},
          "createdAt": {},
          "total": {},
          "succeeded": {},
          "failed": {},
          "conflicts": {},
          "rows": {
           "type": "array",
           "items": {}
          },
          "dryRun": {},
          "retried": {
           "type": "array",
           "items": {}
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "rows": {
          "description": "고친 행 — externalId 로 맞춘다"
         },
         "resolutions": {
          "description": "원천 번호 → TAKE_SOURCE · KEEP_CURRENT"
         },
         "dryRun": {
          "description": "기본 거짓"
         }
        },
        "additionalProperties": false
       },
       "example": {
        "dryRun": true
       }
      }
     }
    }
   }
  },
  "/v1/direct/listings/{listing_id}/submissions": {
   "post": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "검토 요청",
    "description": "초안 → 확인 중(공개는 운영자 확인 뒤)",
    "operationId": "post_v1_direct_listings_listing_id_submissions",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "id · state · published · flags · warnings · publishMode",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "submitListingForReview",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "id": {},
          "state": {},
          "published": {},
          "flags": {},
          "warnings": {},
          "publishMode": {}
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "If-Match",
      "in": "header",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "상품 내용 = 조회 응답 ETag · 그 밖 = 매물 version"
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "noticeAck": {
          "description": "등록 확인 — 처음 제출에 참"
         }
        },
        "additionalProperties": false
       },
       "example": {
        "noticeAck": true
       }
      }
     }
    }
   }
  },
  "/v1/direct/listings/{listing_id}/transitions": {
   "post": {
    "tags": [
     "다이렉트 API"
    ],
    "summary": "상태 전환 요청",
    "description": "SUBMIT = 검토 요청 · PUBLISH 는 막힘(403)",
    "operationId": "post_v1_direct_listings_listing_id_transitions",
    "security": [
     {
      "ApiKey": [],
      "DirectDelegation": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "id · state · published · flags · warnings · publishMode",
    "x-lucela-direct": true,
    "x-lucela-direct-command": "transitionDirectListing",
    "responses": {
     "200": {
      "description": "성공 — 다이렉트 몸통 그대로",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "id": {},
          "state": {},
          "published": {},
          "flags": {},
          "warnings": {},
          "publishMode": {}
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "listing_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "If-Match",
      "in": "header",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "상품 내용 = 조회 응답 ETag · 그 밖 = 매물 version"
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "action": {
          "description": "SUBMIT · PUBLISH"
         },
         "noticeAck": {
          "description": "등록 확인"
         }
        },
        "required": [
         "action"
        ],
        "additionalProperties": false
       },
       "example": {
        "action": "SUBMIT",
        "noticeAck": true
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "securitySchemes": {
   "ApiKey": {
    "type": "apiKey",
    "in": "header",
    "name": "X-Lucela-API-Key"
   },
   "LucelaDelegation": {
    "type": "oauth2",
    "description": "손님 위임 토큰 — 인가 코드 + PKCE(S256). 개인 자료는 이 토큰으로만 엽니다.",
    "flows": {
     "authorizationCode": {
      "authorizationUrl": "https://auth.lucela.kr/realms/lucela/protocol/openid-connect/auth",
      "tokenUrl": "https://auth.lucela.kr/realms/lucela/protocol/openid-connect/token",
      "refreshUrl": "https://auth.lucela.kr/realms/lucela/protocol/openid-connect/token",
      "scopes": {
       "openid": "회원번호(이 앱 전용)",
       "lucela.name.read": "이름",
       "email": "이메일",
       "soompyo.birth.read": "출생 연월일 · 태어난 시 · 양력/음력 · 성별"
      }
     }
    }
   },
   "AtelierProductToken": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "lcpt_",
    "description": "아틀리에 상품등록 토큰 — 범위: atelier.products:read · atelier.products:write · atelier.products:submit · atelier.catalog:review · atelier.catalog:publish · atelier.purchases:read · atelier.purchases:write · atelier.library:download"
   },
   "DirectDelegation": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "lcdd.",
    "description": "루첼라 다이렉트 연결 토큰 — https://direct.lucela.kr/connections 에서 발급 · 실제 키(X-Lucela-API-Key)와 함께 보낸다"
   }
  },
  "schemas": {
   "ErrorEnvelope": {
    "type": "object",
    "required": [
     "status",
     "data",
     "error",
     "meta"
    ],
    "properties": {
     "status": {
      "const": "error"
     },
     "data": {
      "type": "null"
     },
     "error": {
      "type": "object",
      "required": [
       "code",
       "title",
       "status",
       "type",
       "detail",
       "instance"
      ],
      "properties": {
       "code": {
        "enum": [
         "ambiguous_birth_place",
         "approval_required",
         "birth_place_required",
         "birth_time_required",
         "consent_required",
         "contract_required",
         "delegation_required",
         "dependency_unavailable",
         "dpa_required",
         "engine_unavailable",
         "environment_mismatch",
         "idempotency_conflict",
         "insufficient_scope",
         "invalid_answers",
         "invalid_credential",
         "invalid_date",
         "invalid_features",
         "invalid_longitude",
         "invalid_time",
         "malformed_request",
         "media_not_ready",
         "method_not_allowed",
         "not_owner",
         "payload_too_large",
         "precondition_required",
         "processing_timeout",
         "provision_ack_required",
         "purpose_not_allowed",
         "quota_exhausted",
         "rate_limited",
         "resource_expired",
         "resource_not_found",
         "rights_denied",
         "sandbox_requires_fixture",
         "scale_version_mismatch",
         "scope_required",
         "service_paused",
         "source_failed",
         "state_conflict",
         "subject_age_not_supported",
         "time_nonexistent",
         "unknown_city_code",
         "unsafe_content",
         "unsupported_calendar",
         "unsupported_capability",
         "unsupported_jasi_method",
         "unsupported_lunar_basis",
         "unsupported_ruleset",
         "unsupported_timezone",
         "validation_blocked",
         "version_conflict"
        ]
       },
       "title": {
        "type": "string"
       },
       "status": {
        "type": "integer"
       },
       "type": {
        "type": "string"
       },
       "detail": {
        "type": "string"
       },
       "instance": {
        "type": "string",
        "format": "uri"
       },
       "field": {
        "type": "string"
       }
      }
     },
     "meta": {
      "type": "object",
      "properties": {
       "request_id": {
        "type": "string"
       }
      }
     }
    }
   }
  },
  "responses": {
   "E401": {
    "description": "invalid_credential: 인증할 수 없습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E403": {
    "description": "scope_required: 이 키로는 쓸 수 없는 기능입니다 · contract_required: 이용 계약이 필요합니다 · rights_denied: 제공할 수 없는 자료입니다 · environment_mismatch: 환경이 맞지 않습니다 · dpa_required: 처리 위탁 문서 동의가 필요합니다 · delegation_required: 손님 위임 토큰이 필요합니다 · insufficient_scope: 허락받지 않은 범위입니다 · not_owner: 이 자료의 주인이 아닙니다 · approval_required: 사람 승인이 필요합니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E413": {
    "description": "payload_too_large: 요청이 너무 큽니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E429": {
    "description": "rate_limited: 요청이 너무 잦습니다 · quota_exhausted: 포함량을 모두 썼습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E503": {
    "description": "engine_unavailable: 계산 엔진을 쓸 수 없습니다 · dependency_unavailable: 지금은 처리할 수 없습니다 · service_paused: 서비스가 잠시 멈춰 있습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   }
  }
 }
}
