{
 "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/atelier/digital/products": {
   "get": {
    "tags": [
     "디지털 콘텐츠 API"
    ],
    "summary": "콘텐츠 목록 조회",
    "description": "판매 중인 디지털 콘텐츠 · 가격 · 라이선스 · 커서",
    "operationId": "get_v1_atelier_digital_products",
    "x-lucela-mcp-tool": "atelier_digital.list_products",
    "security": [],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "data(items[](productId · title · kind · price · currency · seller · license · format · version · aiNotice · image · purchasable · url — 그 밖 칸) · nextCursor) · meta(request_id · schema_version · warnings)",
    "x-lucela-prodreg": true,
    "x-lucela-scope": null,
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "items": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "productId": {},
                 "title": {},
                 "kind": {},
                 "price": {},
                 "currency": {},
                 "seller": {},
                 "license": {},
                 "format": {},
                 "version": {},
                 "aiNotice": {},
                 "image": {},
                 "purchasable": {},
                 "url": {}
                }
               }
              },
              "nextCursor": {}
             },
             "required": [
              "items",
              "nextCursor"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "schema_version": {},
              "warnings": {}
             },
             "required": [
              "request_id",
              "schema_version",
              "warnings"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "제목 · 소개 일부 · 2~40자"
     },
     {
      "name": "assetClass",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "guide · sw · data · model · design · publishing · game 등"
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "앞 응답의 nextCursor"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50
      },
      "description": "정수 1~50 · 기본 20"
     }
    ]
   }
  },
  "/v1/atelier/digital/products/{product_id}": {
   "get": {
    "tags": [
     "디지털 콘텐츠 API"
    ],
    "summary": "콘텐츠 상세 조회",
    "description": "가격 · 이용 조건 · 라이선스 · 미리보기 · 상품정보제공 고시 · AI 활용 · 검수 요약",
    "operationId": "get_v1_atelier_digital_products_product_id",
    "x-lucela-mcp-tool": "atelier_digital.get_product",
    "security": [],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "data(productId · title · price · license · terms[] · previews[] · sample · legalNotice[](name · description) · aiNotice · withdrawal · verification · purchasable — 그 밖 칸) · meta(request_id · schema_version · warnings)",
    "x-lucela-prodreg": true,
    "x-lucela-scope": null,
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "productId": {},
              "title": {},
              "price": {},
              "license": {},
              "terms": {
               "type": "array",
               "items": {}
              },
              "previews": {
               "type": "array",
               "items": {}
              },
              "sample": {},
              "legalNotice": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "name": {},
                 "description": {}
                },
                "required": [
                 "name",
                 "description"
                ]
               }
              },
              "aiNotice": {},
              "withdrawal": {},
              "verification": {},
              "purchasable": {}
             }
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "schema_version": {},
              "warnings": {}
             },
             "required": [
              "request_id",
              "schema_version",
              "warnings"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "product_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/atelier/digital/orders": {
   "post": {
    "tags": [
     "디지털 콘텐츠 API"
    ],
    "summary": "주문 생성",
    "description": "상품 번호 → 주문 한 건 · 결제창 주소(결제는 손님이 결제창에서)",
    "operationId": "post_v1_atelier_digital_orders",
    "x-lucela-mcp-tool": "atelier_digital.create_order",
    "security": [
     {
      "AtelierProductToken": [
       "atelier.purchases:write"
      ]
     },
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "data(orderId · state · amount · currency · seller · items[] · checkoutUrl · checkoutExpiresIn) · meta(request_id · schema_version · warnings)",
    "x-lucela-prodreg": true,
    "x-lucela-scope": "atelier.purchases:write",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "orderId": {},
              "state": {},
              "amount": {},
              "currency": {},
              "seller": {},
              "items": {
               "type": "array",
               "items": {}
              },
              "checkoutUrl": {},
              "checkoutExpiresIn": {}
             },
             "required": [
              "orderId",
              "state",
              "amount",
              "currency",
              "seller",
              "items",
              "checkoutUrl",
              "checkoutExpiresIn"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "schema_version": {},
              "warnings": {}
             },
             "required": [
              "request_id",
              "schema_version",
              "warnings"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "productIds": {
          "description": "상품 번호 1~20개 · 판매자 한 명"
         },
         "returnUrl": {
          "description": "결제 뒤 돌아갈 아틀리에 주소 · 상대 경로 또는 https://shop.lucela.kr · https://shop-m.lucela.kr"
         }
        },
        "required": [
         "productIds"
        ],
        "additionalProperties": false
       },
       "example": {
        "productIds": [
         "25801"
        ],
        "returnUrl": "/account/library"
       }
      }
     }
    }
   }
  },
  "/v1/atelier/digital/orders/{order_id}": {
   "get": {
    "tags": [
     "디지털 콘텐츠 API"
    ],
    "summary": "주문 조회",
    "description": "내 주문 상태 · 결제 상태 · 품목과 받은 권한 번호",
    "operationId": "get_v1_atelier_digital_orders_order_id",
    "x-lucela-mcp-tool": "atelier_digital.get_order",
    "security": [
     {
      "AtelierProductToken": [
       "atelier.purchases:read"
      ]
     },
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "data(orderId · state · amount · paymentStatus · paid · paidAt · items[](productId · title · price · entitlementId)) · meta(request_id · schema_version · warnings)",
    "x-lucela-prodreg": true,
    "x-lucela-scope": "atelier.purchases:read",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "orderId": {},
              "state": {},
              "amount": {},
              "paymentStatus": {},
              "paid": {},
              "paidAt": {},
              "items": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "productId": {},
                 "title": {},
                 "price": {},
                 "entitlementId": {}
                },
                "required": [
                 "productId",
                 "title",
                 "price",
                 "entitlementId"
                ]
               }
              }
             },
             "required": [
              "orderId",
              "state",
              "amount",
              "paymentStatus",
              "paid",
              "paidAt",
              "items"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "schema_version": {},
              "warnings": {}
             },
             "required": [
              "request_id",
              "schema_version",
              "warnings"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "order_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/atelier/digital/orders/{order_id}/receipt": {
   "get": {
    "tags": [
     "디지털 콘텐츠 API"
    ],
    "summary": "주문 내역서 조회",
    "description": "판매 당사자 · 품목 · 금액 · 결제 상태 · 품목별 라이선스",
    "operationId": "get_v1_atelier_digital_orders_order_id_receipt",
    "security": [
     {
      "AtelierProductToken": [
       "atelier.purchases:read"
      ]
     },
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "data(orderId · merchantOfRecord · amount · paymentStatus · paidAt · items[](productId · title · price · license)) · meta(request_id · schema_version · warnings)",
    "x-lucela-prodreg": true,
    "x-lucela-scope": "atelier.purchases:read",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "orderId": {},
              "merchantOfRecord": {},
              "amount": {},
              "paymentStatus": {},
              "paidAt": {},
              "items": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "productId": {},
                 "title": {},
                 "price": {},
                 "license": {}
                },
                "required": [
                 "productId",
                 "title",
                 "price",
                 "license"
                ]
               }
              }
             },
             "required": [
              "orderId",
              "merchantOfRecord",
              "amount",
              "paymentStatus",
              "paidAt",
              "items"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "schema_version": {},
              "warnings": {}
             },
             "required": [
              "request_id",
              "schema_version",
              "warnings"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "order_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/atelier/digital/library": {
   "get": {
    "tags": [
     "디지털 콘텐츠 API"
    ],
    "summary": "보관함 목록 조회",
    "description": "내가 산 콘텐츠 · 판 · 이용 상태 · 첫 받기 시각",
    "operationId": "get_v1_atelier_digital_library",
    "x-lucela-mcp-tool": "atelier_digital.list_library",
    "security": [
     {
      "AtelierProductToken": [
       "atelier.purchases:read"
      ]
     },
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "data(items[](entitlementId · productId · title · license · version · state · grantedAt · expiresAt · provisionStartedAt — 그 밖 칸) · nextCursor) · meta(request_id · schema_version · warnings)",
    "x-lucela-prodreg": true,
    "x-lucela-scope": "atelier.purchases:read",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "items": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "entitlementId": {},
                 "productId": {},
                 "title": {},
                 "license": {},
                 "version": {},
                 "state": {},
                 "grantedAt": {},
                 "expiresAt": {},
                 "provisionStartedAt": {}
                }
               }
              },
              "nextCursor": {}
             },
             "required": [
              "items",
              "nextCursor"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "schema_version": {},
              "warnings": {}
             },
             "required": [
              "request_id",
              "schema_version",
              "warnings"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100
      },
      "description": "정수 1~100 · 기본 20"
     }
    ]
   }
  },
  "/v1/atelier/digital/library/{entitlement_id}/license": {
   "get": {
    "tags": [
     "디지털 콘텐츠 API"
    ],
    "summary": "라이선스 조회",
    "description": "산 때 굳힌 라이선스 · 이용 범위(상업 · 재판매 · 2차 저작 · AI 학습)",
    "operationId": "get_v1_atelier_digital_library_entitlement_id_license",
    "security": [
     {
      "AtelierProductToken": [
       "atelier.purchases:read"
      ]
     },
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "data(licenseName · terms[] · scope(termDays · maxUsers · commercialUse · resale · derivative · modification · aiTrainingUse) · snapshot — 그 밖 칸) · meta(request_id · schema_version · warnings)",
    "x-lucela-prodreg": true,
    "x-lucela-scope": "atelier.purchases:read",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "licenseName": {},
              "terms": {
               "type": "array",
               "items": {}
              },
              "scope": {
               "type": "object",
               "properties": {
                "termDays": {},
                "maxUsers": {},
                "commercialUse": {},
                "resale": {},
                "derivative": {},
                "modification": {},
                "aiTrainingUse": {}
               },
               "required": [
                "termDays",
                "maxUsers",
                "commercialUse",
                "resale",
                "derivative",
                "modification",
                "aiTrainingUse"
               ]
              },
              "snapshot": {}
             }
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "schema_version": {},
              "warnings": {}
             },
             "required": [
              "request_id",
              "schema_version",
              "warnings"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "entitlement_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/atelier/digital/library/{entitlement_id}/download": {
   "post": {
    "tags": [
     "디지털 콘텐츠 API"
    ],
    "summary": "받기 주소 발급",
    "description": "5분 서명 주소 · 파일 이름 · 크기 · sha256 (처음 받기는 제공 개시 확인 필수)",
    "operationId": "post_v1_atelier_digital_library_entitlement_id_download",
    "x-lucela-mcp-tool": "atelier_digital.get_download",
    "security": [
     {
      "AtelierProductToken": [
       "atelier.library:download"
      ]
     },
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "과금 없음",
    "x-lucela-unit-weight": 0,
    "x-lucela-response-fields": "data(entitlementId · kind · url · expiresIn · file(name · size · version · sha256) · provisionStartedAt) · meta(request_id · schema_version · warnings)",
    "x-lucela-prodreg": true,
    "x-lucela-scope": "atelier.library:download",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "entitlementId": {},
              "kind": {},
              "url": {},
              "expiresIn": {},
              "file": {
               "type": "object",
               "properties": {
                "name": {},
                "size": {},
                "version": {},
                "sha256": {}
               },
               "required": [
                "name",
                "size",
                "version",
                "sha256"
               ]
              },
              "provisionStartedAt": {}
             },
             "required": [
              "entitlementId",
              "kind",
              "url",
              "expiresIn",
              "file",
              "provisionStartedAt"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "schema_version": {},
              "warnings": {}
             },
             "required": [
              "request_id",
              "schema_version",
              "warnings"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "entitlement_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "ack": {
          "description": "처음 받기에 true 필수 — 제공 개시 뒤 청약철회 제한 확인"
         }
        },
        "additionalProperties": false
       },
       "example": {
        "ack": 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": {
   "Envelope": {
    "type": "object",
    "required": [
     "status",
     "data",
     "error",
     "meta"
    ],
    "properties": {
     "status": {
      "const": "ok"
     },
     "data": {},
     "error": {
      "type": "null"
     },
     "meta": {
      "type": "object",
      "properties": {
       "request_id": {
        "type": "string"
       },
       "environment": {
        "enum": [
         "SANDBOX",
         "LIVE"
        ]
       },
       "synthetic": {
        "type": "boolean"
       },
       "schema_version": {
        "type": "string"
       },
       "warnings": {
        "type": "array",
        "items": {}
       }
      }
     }
    }
   },
   "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": {
   "E400": {
    "description": "malformed_request: 요청 형식이 맞지 않습니다 · provision_ack_required: 제공 개시 확인이 필요합니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "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"
      }
     }
    }
   },
   "E404": {
    "description": "resource_not_found: 찾을 수 없습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E409": {
    "description": "idempotency_conflict: 같은 멱등 키로 다른 요청이 왔습니다 · version_conflict: 다른 변경이 먼저 반영됐습니다 · state_conflict: 지금 상태에서는 할 수 없습니다 · media_not_ready: 미디어 처리가 끝나지 않았습니다 · scale_version_mismatch: 척도 판이 맞지 않습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E413": {
    "description": "payload_too_large: 요청이 너무 큽니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E422": {
    "description": "invalid_date: 날짜가 올바르지 않습니다 · invalid_time: 시각이 올바르지 않습니다 · unsupported_calendar: 지원하지 않는 달력입니다 · unsupported_timezone: 지원하지 않는 시간대입니다 · time_nonexistent: 존재하지 않는 시각입니다 · birth_time_required: 출생 시각이 필요합니다 · birth_place_required: 출생지가 필요합니다 · unknown_city_code: 알 수 없는 도시입니다 · ambiguous_birth_place: 출생지가 하나로 정해지지 않습니다 · invalid_longitude: 경도가 올바르지 않습니다 · unsupported_jasi_method: 지원하지 않는 자시 규칙입니다 · unsupported_lunar_basis: 지원하지 않는 음력 기준입니다 · unsupported_ruleset: 지원하지 않는 규칙입니다 · unsupported_capability: 지원하지 않는 기능입니다 · sandbox_requires_fixture: 샌드박스 키는 시험 입력만 받습니다 · invalid_answers: 응답 값이 올바르지 않습니다 · invalid_features: 특징 코드가 올바르지 않습니다 · consent_required: 이용자 동의 확인이 필요합니다 · purpose_not_allowed: 허용되지 않는 이용 목적입니다 · subject_age_not_supported: 지원하지 않는 이용자 연령입니다 · validation_blocked: 막힌 칸이 있습니다 · unsafe_content: 허용하지 않는 내용입니다",
    "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"
      }
     }
    }
   }
  }
 }
}
